Search:
Type: Posts; User: Jinto
Search:
Search took 0.29 seconds.
-
September 8th, 2005, 05:19 AM
You could try placing this in the loop to yeild to other parts of your application.
Application::DoEvents();
Or run it on a seperate thread.
ThreadStart* thrdStart = new ThreadStart( this,...
-
September 8th, 2005, 05:10 AM
http://www.codeguru.com/forum/showthread.php?t=347086
Similar question ^
-
July 20th, 2005, 08:23 AM
The Managed C++ equal to atoi is Convert::ToInt32( ).
String* str = S"1002";
int number = Convert::ToInt32( str );
And back again.
int number = 1002;
-
July 14th, 2005, 07:08 PM
Find the process and kill it.
System::Diagnostics::Process* p[] = System::Diagnostics::Process::GetProcessesByName( S"Winamp" );
for( int i = 0; i < p->Count; i++ ) {
p[i]->Kill( );
}
-
July 14th, 2005, 06:59 PM
Convert::ToSingle( ) Converts to a float.
-
July 14th, 2005, 06:56 PM
String* str = S"somestring";
const char* str2 = (const char*)Runtime::InteropServices::Marshal::StringToHGlobalAnsi( str ).ToPointer( );
-
To get/set the number in the textbox.
GetDlgItemInt
Then just handle the click events in the WM_COMMAND message.
I'm telling you how with plain winapi cause I don't know how to use mfc.
-
simply when the up button is clicked increment the value in the text box. same for down.
Make it have the ES_NUMBER style. to prevent people form putting text in it.
You can't plop the 3...
-
Only way to prevent leaks is to make sure they never happen.
Delete any resources you use when you are done with them.
-
Use 2 seperate buttons and an edit box.
-
I havn't tried it myself but I found this.
http://www.codeproject.com/dotnet/COM_DOTNET_INTEROP.asp
http://www.codeproject.com/dotnet/nettocom.asp?df=100&forumid=14076&exp=0&select=864859
-
You need to marshal it from a bstr.
String* str = Runtime::InteropServices::Marshal::PtrToStringBSTR( static_cast<IntPtr>( bs ) );
-
Well perhaps this might help you.
Using Managed Components from Unmanaged Code
But this method uses COM so I'm pretty sure you can't escape it.
-
April 8th, 2005, 09:02 AM
Managed Components are interchangeable.
Meaning you can use a c# class library in mc++ or vb.net. If you have the code simply convert it if you don't want have to use it from a class library.
You...
-
March 24th, 2005, 06:13 AM
Its all hardward related. Speed it can read data from the hd, memory write/read speed, ect.. A lot of things can contribute to slow load times.
Mine loads in about 2 - 5 seconds.
-
March 14th, 2005, 05:30 AM
Find the window them hide it.
HWND taskbar = FindWindowEx( NULL, NULL, "Shell_TrayWnd", NULL );
if( taskbar ) {
ShowWindow( taskbar, SW_HIDE );
}
-
February 15th, 2005, 03:07 PM
Create a new Managed Class Library or Control Library.
-
February 15th, 2005, 03:06 PM
Managed is anything that uses the .NET Framework.
A Managed Console Application would be under .NET projects.
so would forms apps, class libraries, ect...
-
January 26th, 2005, 07:51 AM
Use the peek method.
while( readFile->Peek() >= 0 ) {
Console::WriteLine( readFile->ReadLine() );
}
-
January 19th, 2005, 12:36 AM
First get the DirectX Sdk the october 04 release. ( I think thats still the latest version not sure ).
It has examples in it. You just gotta browse around its directory structure.
-
January 19th, 2005, 12:33 AM
Take a look at the string class.
String::Equal
String::Compare
-
January 17th, 2005, 06:45 AM
You have to initialize each element of the array first.
Oh it makes it easier on all of us if you use the code tags when posting code.
__gc class Log {
private:
String *user;
String...
-
January 17th, 2005, 06:41 AM
Well the reason I suggested it is because I see managed C++ projects in the new project dialog.
And as for 2005 express its free right now
but you wont' be able to use anymore in march of this...
-
January 17th, 2005, 06:28 AM
Relo can be used with the vc++ .net command line tools ( which are free ).
Not sure if sharpdevelop can be used with vc++ .net but its a nice free alternative to C# and VB.NET.
-
January 17th, 2005, 06:26 AM
Do what I do create a singleton class called let say CGlobals and stick all your globals in that. Then just include the globals class header file in each form u want access to that global.
|
Click Here to Expand Forum to Full Width
|