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

Search:

Type: Posts; User: glourung

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    611

    Re: Obtaining project directory path

    If I understand your question correctly,
    you can do get a path using __FILE__ macro. It will be replaced by preprocessor with full path of current source file. It will be simple string constant like...
  2. Replies
    3
    Views
    6,025

    Re: Bold fonts and colors for richTextBox lines

    Hello!

    Sorry for that delay. This is a sample code. Sorry it is in C# but it does what you need. But as soon it is all .NET it does not metter what langugae to use. Hope it helps. Also Rtf - is a...
  3. Replies
    1
    Views
    3,886

    Re: Adding Property Pages to Device Drivers

    Hello!
    I think you can try to implement property page provider inside additional coinstaller.
    So I believe you can provide your pnpports.dll with implemented:
    DWORD PropPageProvider(
    IN HDEVINFO...
  4. Re: [RESOLVED] I can't figure out this "syntax error". [CROSSPOST]

    Hello!

    If SpashScreenSimple class really defined inside SplashScreenSimple.h then I can see two possible problems:
    1. SpashScreenSimple may be defined inside some namespace other then Forms. In...
  5. Replies
    3
    Views
    6,025

    Re: Bold fonts and colors for richTextBox lines

    Hello!

    To use functionality of RitchTextBox I know two ways:
    1. Use RTF notation and Rtf or RtfText property of ritch text box object.
    Personally I am using this one. To use it, you should know...
  6. Replies
    3
    Views
    4,452

    Re: Error C3767 Visual Studio

    I look at C++/CLI as a smart wrapper provider for native code that you want to use in C#. From my point of view C++/CLI is powerful but it extend complexity of C++ itself. It is good language but for...
  7. Thread: User Controls

    by glourung
    Replies
    1
    Views
    1,086

    Re: User Controls

    1. file extension (.exe or .dll) does not metter.
    2. As far as I know VS will automatically add all controls you have for tool box after project/solution rebuild. To be able to use control form...
  8. Replies
    3
    Views
    4,452

    Re: Error C3767 Visual Studio

    Hello. According to MSDN article
    http://msdn.microsoft.com/en-us/library/19dh8yat(VS.80).aspx:

    "
    Another thing that seems to generate this error is using a native type in the signature of a...
  9. Replies
    2
    Views
    4,521

    Re: Get PNP Device ID

    I do not think that there is any standard method for it. I think that good solution will be to make Managed C++ library with managed interface and native code internal. Native C will allow you to use...
  10. Replies
    1
    Views
    701

    Re: Networking - Udp port

    1. UDP is a protocol that has no garantee that packet will be received. Hopefuly it happens very rarely, but can be. Try to use any sniffer that helps you to understand where packet is missing. Even...
  11. Replies
    5
    Views
    2,021

    Re: Open Help file......

    Hello!

    I have looked at your code. Wile execution it gives me a Win32Exception with code 0x80041002. As far as I remember 8 means that it is Warning and 1002 - hex code of error. 0x1002 = 4098 -...
  12. Re: automatically add getters and setters to priv vars

    You can use options in visual studio 2008 - just right click and select Wrap local variable.... or something. I pretty sure that you can add hot key for it. If you want full automatic I believe that...
  13. Thread: Need C# Ideas

    by glourung
    Replies
    11
    Views
    1,834

    Re: Need C# Ideas

    I do not like when the task is write some program that do anything. Is is bad when program has no goal.

    With this set of controls I can imagine program that allow to open multiple Image files (tab...
  14. Re: Programmatically selecting a DataGridView Row

    Hello!
    To select a row from code you need just simple set property Selected
    dataGridView1.Rows[1].Selected = true;

    Instead of:
    Guid styleId = new...
  15. Re: Wait at most 60 seconds for a dos prog to exit, but capturing its output

    In my practice I have not use this event but directly Output stream of process. And by the way, Instead of for&sleep it is better to use WaitForExit method which will actually will cause a call for...
  16. Replies
    5
    Views
    1,305

    Re: Datagridview finally ?

    Also you can specify:

    chargedataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
  17. Replies
    5
    Views
    1,305

    Re: Datagridview finally ?

    I have notice, that CurrentRow - is read-only, but CurrentCell - can be written. I believe, that next code should works:

    myrow = chargedataGridView.CurrentRow.Index;...
  18. Replies
    1
    Views
    1,943

    Re: Close MS Access from C#

    Basically the major class to manipulate processes on local system ore remote one is

    System.Diagnostics.Process

    It has several static methods that allow to enumerate existing processes.
    Also...
  19. Replies
    1
    Views
    4,819

    Re: C++ Structures in C#

    I think that in your case the best solution that I can see is to make a tool tat will translate all your classes(structures) in .Net wrappers. Text processing tool. It seems to me not very difficult....
  20. Replies
    3
    Views
    2,400

    Re: I need help w/ my program!

    I believe that you can just remove Debug folder and rebuild. Or Try to check access to Debug folder - possibly you have no access there.
    Also I am not sure that name 'Planets (Version 1).exe' is...
  21. Replies
    1
    Views
    1,150

    Re: Using Classes Without #include?

    If you do not want to use include in your project you can make only one *.cpp file and include in it all other files. In this case you can have multiple *.h files like you have in C# with separate...
  22. Replies
    4
    Views
    2,358

    Re: Wrapping native class

    Ok, you have class Foo

    class Foo
    {
    public:
    Foo(){}
    virtual ~Foo(){}
    virtual void doStuff() = 0;
    virtual void doStuff2() = 0;
    };
  23. Replies
    4
    Views
    3,457

    Re: build and extern "C" problem

    I think, that C is better to implement driver routines and entry points. But for huge drivers it is usefull to use C++ and its object-oriented style. In this case you can have several C files for...
Results 1 to 23 of 24





Click Here to Expand Forum to Full Width

Featured