Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Jinto

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    2,062

    Re: filestream/binarywriter issue

    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,...
  2. Replies
    1
    Views
    13,108

    Re: how to call C# code from C++

    http://www.codeguru.com/forum/showthread.php?t=347086

    Similar question ^
  3. Thread: Conversion

    by Jinto
    Replies
    4
    Views
    674

    Re: Conversion

    The Managed C++ equal to atoi is Convert::ToInt32( ).


    String* str = S"1002";
    int number = Convert::ToInt32( str );

    And back again.


    int number = 1002;
  4. Replies
    3
    Views
    556

    Re: Closing a program

    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( );
    }
  5. Replies
    2
    Views
    549

    Re: Converting to Decimal Question

    Convert::ToSingle( ) Converts to a float.
  6. Replies
    1
    Views
    2,139

    Re: Convert a String to a const char

    String* str = S"somestring";
    const char* str2 = (const char*)Runtime::InteropServices::Marshal::StringToHGlobalAnsi( str ).ToPointer( );
  7. Replies
    6
    Views
    823

    Re: Split spin in two buttons

    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.
  8. Replies
    6
    Views
    823

    Re: Split spin in two buttons

    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...
  9. Thread: memory leaks

    by Jinto
    Replies
    6
    Views
    1,965

    Re: memory leaks

    Only way to prevent leaks is to make sure they never happen.
    Delete any resources you use when you are done with them.
  10. Replies
    6
    Views
    823

    Re: Split spin in two buttons

    Use 2 seperate buttons and an edit box.
  11. Replies
    2
    Views
    9,439

    Re: Legacy C to .NET Bridge

    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
  12. Replies
    2
    Views
    2,923

    Re: Convert BSTR to String

    You need to marshal it from a bstr.


    String* str = Runtime::InteropServices::Marshal::PtrToStringBSTR( static_cast<IntPtr>( bs ) );
  13. Re: Wrapping managed objects calls from unmanaged code

    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.
  14. Replies
    1
    Views
    1,452

    Re: zLib compression library-->c++.net?

    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...
  15. Re: how long does it takes you to load Visual Studio?

    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.
  16. Thread: Disable Task Bar

    by Jinto
    Replies
    1
    Views
    299

    Re: Disable Task Bar

    Find the window them hide it.


    HWND taskbar = FindWindowEx( NULL, NULL, "Shell_TrayWnd", NULL );
    if( taskbar ) {
    ShowWindow( taskbar, SW_HIDE );
    }
  17. Replies
    2
    Views
    894

    Re: Writing dot net componets

    Create a new Managed Class Library or Control Library.
  18. Replies
    2
    Views
    656

    Re: Managed C++ Application

    Managed is anything that uses the .NET Framework.

    A Managed Console Application would be under .NET projects.
    so would forms apps, class libraries, ect...
  19. Replies
    3
    Views
    2,413

    Re: Detecting EOF in a file stream

    Use the peek method.


    while( readFile->Peek() >= 0 ) {
    Console::WriteLine( readFile->ReadLine() );
    }
  20. Replies
    3
    Views
    876

    Re: directx in visual c++ 2003

    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.
  21. Replies
    4
    Views
    769

    Re: Reading Strings from a text file

    Take a look at the string class.

    String::Equal
    String::Compare
  22. Thread: class array

    by Jinto
    Replies
    1
    Views
    433

    Re: class array

    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...
  23. Replies
    4
    Views
    720

    Re: Any free IDE you recommend?

    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...
  24. Replies
    4
    Views
    720

    Re: Any free IDE you recommend?

    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.
  25. Replies
    4
    Views
    948

    Re: Global Variables?

    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.
Results 1 to 25 of 268
Page 1 of 11 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center