all groups > visual c > august 2005 > threads for august 15 - 21, 2005
Filter by week: 1 2 3 4 5
Newbie Hello World question: Show in textbox on button click
Posted by J.S. at 8/21/2005 7:24:00 AM
I can show Hello World in a MessageBox with this code:
private: System::Void button1_Click(System::Object^ sender,
System::EventArgs^ e) {MessageBox::Show("Hello, World!");
}
but I cannot show it in a textbox with this code:
private: System::Void button2_Click(System::Object^ sender,
Sys... more >>
This project is out of date: HelloWorld - Debug Win32
Posted by J.S. at 8/21/2005 5:23:08 AM
Whenever I try to debug a simple C++ application in VC++ I get this message:
"This project is out of date: HelloWorld - Debug Win32"
What does it mean? Do I need to modify something?
Thanks,
J.S.
--
... more >>
Urgent: Linking Error :__declspec(dllimport) public: class ATL::CS
Posted by .NET developer at 8/21/2005 2:51:12 AM
Hi ,
While upgrading my application from vc6 to vc7 I got followin linking errors :
__declspec(dllimport) public: class ATL::CStringT<unsigned short,class
StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > >
__thiscall CHPCmdExecFrame::GetStringParam(int,int *)"
(_... more >>
link problem in a C++ web service client
Posted by Mike Woinoski at 8/19/2005 8:57:51 PM
(I'm new to VS, so please forgive me if this is a faq.) I'm writing some Java
web services and need to test them with C++ clients. I can use either a Windows
Form application or an MFC application. I used VS.NET 2003 to create a C# client
that successfully processes SOAP messages to and from t... more >>
Upper/lower Case in C#
Posted by tshad at 8/19/2005 11:18:05 AM
I have the following in vb.net:
DataSetObj.Tables(0).Rows(i).ItemArray(1) =
UCase(DataSetObj.Tables(0).Rows(i).ItemArray(1))
I tried this is C#, but got the error that UCase and LCase don't exist.
DataSetObj.Tables[0].Rows[i].ItemArray[1] =
UCase(DataSetObj.Tables[0].Rows[i].ItemArray[1... more >>
paring char* using strtok
Posted by arssa2020 NO[at]SPAM yahoo.com at 8/19/2005 10:34:41 AM
hello,
i am writing a GPS app in evc++ 4.0, i am using c-style char* instead
of CStrings, i want to parse NMEA sentence such as
"GPZDA,162913.48,19,08,2005,,*63"
problem is when i use strtok it ignores an empty data field
below is the output for the sentence above
"GPZDA"
"162913.48"
... more >>
Button1_Click not used
Posted by tshad at 8/19/2005 9:26:43 AM
I had a project where I had some code in my Button1_Click procedure and
copied it over to a new project (that had the same button name on it) and I
couldn't figure out why the event never fired.
I then double-clicked on the button and a new event opened which normally
would have been Button... more >>
Windows
Posted by mike east at 8/19/2005 8:19:12 AM
Greetings,
Is there anyway to creat a Window in XP that is not rectangular.... i.e.
oval, round, rounded corners.....
I've been challenged to take an old Win95 application and "give it a new
look".... one thought I had was getting away from the old fashioned
rectangular windows.
Any ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to Mix .NET library with MFC Application ????
Posted by Skandaja at 8/19/2005 5:20:14 AM
Hi All,
I have created a classic MFC Dialog application ( statically linked
to MFC Library) which can run on any windows platform, without any
library dependencies.
Now, In this application I want to use .NET library say I want to use
sockets provided by .Net
using namespace System::Ne... more >>
How to show a MessageBox outside the form.h module?
Posted by joye at 8/19/2005 12:00:00 AM
Hi,
I know how the show a MessageBox in Form.h module by using VC.NET.
But I don't know how to show the MessageBox at another class such as
task.cpp which called by the Form.h; my question is how to pass the
arguments from Form.h to a MessageBox::Show() which included in a class
method.
Th... more >>
trackBar Scroll value?
Posted by Geoff Cox at 8/18/2005 6:50:44 PM
Hello,
I am using Visual C++ 2005 Express Beta 2 and cannot sort out how to
use the Scroll property value for a trackBar.
Under Event properties the name for the Scroll property is
trackBar1_Scroll so how do I print out the Scroll value?
I have tried using
Console::WriteLine(tra... more >>
Numeric Validation
Posted by T. at 8/18/2005 2:39:20 PM
In VB I used to use the function IsNumeric() to test that characters entered
in a field where numeric. What is the C# equivqlent?
Thanks in advance... more >>
Adding Support for Managed Extensions
Posted by Jaster at 8/18/2005 4:09:03 AM
Hi. i got some trouble including Managed C++.
Refering to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_overview.asp.
There is no "Compile As Managed" property in the General folder under C/C++.
Ive tried Adding /clr to the command line, but i recive:... more >>
How to declare enum using attribute in VC++ .Net?
Posted by Woon Kiat Wong at 8/17/2005 10:50:16 PM
Hi,
Using IDL, I can declare my enumeration like following,
library MyAppLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
typedef enum MyColor
{
ORANGE = 1,
RED = 2
} MyColor;
}
COM compatible cli... more >>
how to write to a file?
Posted by Geoff Cox at 8/17/2005 8:07:36 PM
Hello,
In C# I can write
TextWriter tw = new StreamWriter("d:\\path\\file.txt");
tw.WriteLine("fred");
tw.Close;
What is the C++ equivalent for Visual C++ ?
Thanks
Cheers
Geoff
... more >>
header files in VC++.NET
Posted by Agos at 8/17/2005 7:57:38 PM
I'm trying to learn VC++.NET. I used till now Borland C++ Builder 6.
I had a program starting like this:
#include <fstream.h>
#define TEMP_FILES 200
......
.......
fstream chunk_file[TEMP_FILES];
With Borland and g++ I had no problems with these lines instead VC++.NET
tells me that can'... more >>
COM implementation reuse without delegation
Posted by Jack at 8/17/2005 7:09:48 PM
Hi,
I am writing a COM server with ATL and VC++.NET. I wonder if there is a way
to reuse COM method implementations without delegation, something like this:
__interface IFoo : IDispatch
{
[id(1)] HRESULT MyMethod();
// other method declarations...
}
class CFooBase : public IFoo
{
... more >>
C++ .Net Simple Math Calc
Posted by Ronin at 8/17/2005 2:01:05 PM
Group,
I'm trying to add 2 textBox text... but some how does compile properly at
all...
textBox3->Text = textBox1->Text + textBox2->Text;
How would i fix this issue? Please HELP
Ronin
... more >>
where to place array initialization?
Posted by Geoff Cox at 8/17/2005 8:20:56 AM
Hello,
I am trying to get a grip on where to place the initialization of two
arrays in the code below which was created using Visual C++ 2005
Express Beta 2...
private: static array<String^>^ LHSquestions = gcnew array<String^>
{"question 1","question 2"};
private: static array<String^>^ R... more >>
Debug COM dll with .Net app in VS.Net
Posted by Gary James at 8/17/2005 8:20:51 AM
I've inherited a COM dll project that was switched from the VS6 environment
to VS.Net. I thought I could debug the COM dll code by adding a VB.Net
project to the solution, but when I set breakpoints in the dll, the code in
the VB test program just passes over them. I'm guessing that it has
s... more >>
HDC undefined value
Posted by Girish at 8/17/2005 2:51:03 AM
Hi ,
I am migrating from VC 6.0 to VC 7.0 with ( windows Control Lib
option in vc dot net ) where I want to draw an image using StretchDIBits. I
am not able to get the HDC of the Window.
I tried using get_handel() which gives undefined value.
Any help regarding this will be grea... more >>
VC 7.1 bug in IJW --- calling native virtual methods returning bool from managed code
Posted by Bern McCarty at 8/16/2005 9:24:40 PM
What do you make of this? I cannot tell for sure but it almost seems as
the the transition thunk to get back from the native bool method to the managed
caller is looking at eax and, if any bit is set, normalizing it to 0x00000001.
If it wants to normalize the value then it should only oper... more >>
declare & initialize array?
Posted by Geoff Cox at 8/16/2005 7:37:28 PM
Hello,
Can I separately declare and initialize a string array? How and where
would I do it in the code below? It was created using Visual C++ 2005
Express Beta 2 ...
In C# I would have
private string[] myArray;
and later
myArray = new string[] {"element 1","element 2"};
Now, I k... more >>
multi line listbox
Posted by Frank at 8/16/2005 5:40:09 PM
Hello all
I program win32 api in C and I need a multiline listbox, could anyone please
tell me how I can accomplish that or refer me to some sample application.
Thank you in advance
... more >>
Looking for application skinning engine that supports color themes.
Posted by meyer_phillip NO[at]SPAM hotmail.com at 8/16/2005 9:03:26 AM
I am looking for an application skinning engine that supports colour
themes. Winamp is an example of an app supporting colour themes. For
example in Winamp I can pick the "Winamp Modern" skin and apply one of
the 30 or so color themes to that skin - so it's the same skin in
different colors.
... more >>
Visual C# to Visual C++ ??!!
Posted by Geoff Cox at 8/16/2005 7:23:29 AM
Hello,
After much effort I have got the Visual C# code below to work using
Visual C# 2005 Express Beta 2 and now I am trying to convert it to
Visual C++ code so that I can use it in Visual C++ 2005 Express Beta
2.
My reason for doing this is that I believe (do tell me if I am wrong!)
that ... more >>
Visual C++ Demangler?
Posted by Ben R. at 8/16/2005 7:23:03 AM
I've been searching google but have not found much. Is there any way to
obtain a demangled, pretty function name from a mangled one? I seem to recall
that there was an executable that you could feed a mangled name to but I
can't find it. Anyone know?
Thanks in advance...
-Ben... more >>
VC6->VC7 Warning C4005 with Warning lvl=3
Posted by AST at 8/16/2005 6:00:45 AM
Hey,
When migrating VC6 projects to VC7 I often get this warning when compiling
the source files that were original VC6 project files that did not emit this
warning: This appears to be related to the original stdafx.h file contents.
[Warning C4005: 'UNICODE' macro redefinition] with the ... more >>
Static MFC in DLL (linker error)
Posted by ac2806 at 8/16/2005 12:00:00 AM
Hi
I want to use the static MFC within a dll, but I get the following errors
when linking:
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcwd.lib(apphelp.obj) : error LNK2001: unr... more >>
strcat problem
Posted by arssa2020 NO[at]SPAM yahoo.com at 8/15/2005 4:19:33 PM
hello all,
ms visual studio 2003,
i need to read serial bytes (one byte at a time) from serial port, and
the catenate it to a char* (cannot use strings)
strcat require that the 2nd parameters (the src)to be of type
const char*.
so i cast the (char byte) to be a (char*)
i have the followi... more >>
generic syntax problem
Posted by Lloyd Dupont at 8/15/2005 12:00:00 AM
I try to write the following line in a syntaxically correct way, but I can't
find it!!!
List::Enumerator<FontCache^>^ fce = fontCache->GetEnumerator();
what's the right syntax?!!?
... more >>
|