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

Search:

Type: Posts; User: Dave C

Page 1 of 12 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    2,011

    Re: floating point to fixed and back

    You can't get an unsigned int result by multiplying one with a double. And if you cast the result all you get is "one".
  2. Replies
    3
    Views
    2,011

    floating point to fixed and back

    I have an application that will stuff fixed point values into CPU registers. They're 32 bit (4 byte) and specified as:

    Unsigned fixed-point number: 5 bits integer 27 bits fractional
    Min = 0x0 =...
  3. Replies
    11
    Views
    3,667

    Re: using a dll without the .lib file

    OK, I did that and it worked. Thank you.
  4. Replies
    11
    Views
    3,667

    Re: using a dll without the .lib file

    Dynamic linking. The DLL is in the same directory as the .exe (debug). The header file for the dll definitions has the extern "C" -

    #ifdef __cplusplus
    extern "C" {
    #endif

    A typical function...
  5. Replies
    11
    Views
    3,667

    Re: using a dll without the .lib file

    I haven't tried that yet. If I can't get the .lib to work, I'll go that route. Thanks for the reference.
  6. Replies
    11
    Views
    3,667

    Re: using a dll without the .lib file

    Thanks for that. So I used the batch file scripts from there and created a .lib file. I added that to my project under the linker's additional dependencies. But when I try to build the project I get...
  7. Replies
    11
    Views
    3,667

    [RESOLVED] using a dll without the .lib file

    I have a dll that I want to use in Visual C++ but I don't have the library file for it (.lib). When I try to compile I get "Error 2 error LNK1120: 1 unresolved externals"
    Is there any way to use...
  8. Replies
    1
    Views
    522

    control arrays and common handler

    I have a bunch of CheckBox controls on a Windows form and rather than create a separate CheckChanged event handler for each one I think it'd be more elegant to create an array with them and handle...
  9. Replies
    5
    Views
    2,253

    Re: MFC with VS Express

    VS 2010 is the (current) company standard, we were hoping to be able to transport the project between development and production without dealing with version differences. The plan now is to...
  10. Replies
    5
    Views
    2,253

    MFC with VS Express

    I have a dialog based MFC application (factory automation) that needs to be run in debug on the target machine, but the Express version of VS 2010 doesn't support that. Before I ask IT to buy another...
  11. Replies
    1
    Views
    1,374

    Progressbar change from VB6 to .NET

    I'm upgrading a VB6 project with VS 2005 and one of the forms uses a progress bar control. In the components list there is a line -

    Public WithEvents ProgressBar1 As AxComctlLib.AxProgressBar
    ...
  12. Replies
    2
    Views
    5,432

    Installing VB6 on Win7

    I've read the stickies and from what I can tell VB6 is supposedly "supported" through Windows 8. I'm trying to install it (actually, Visual Studio 6) on a 32 bit Win 7 platform and the OS says that...
  13. Replies
    1
    Views
    844

    File in use by another process

    I have a VB 2005 application that creates a text file and saves it to disk. One of my users (remote from me, unfortunately) is having problems with it and I'm not able to duplicate the error he's...
  14. Replies
    2
    Views
    1,329

    Re: C# looping help!

    A couple of suggestions...

    You've prompted the user to enter 10 digits. The input string myChoice will be (should be) 10 characters long. You only need to input that once, unless there are not 10...
  15. Replies
    5
    Views
    1,905

    Re: Source directories in C# IDE VS2010

    I don't understand why this is happening then. Project->Add Existing Item doesn't have any options, and I find nothing in the project properties or tools menus that would affect this.

    Edit: It...
  16. Replies
    5
    Views
    1,905

    Source directories in C# IDE VS2010

    I have a directory of class files that will be used by multiple projects and solutions. When I add a file from that directory to one of my projects Visual Studio copies it into the project directory....
  17. Replies
    5
    Views
    2,618

    Re: Using a C++ DLL with C#

    Thank you Arjay - the DEF file worked.
  18. Replies
    5
    Views
    2,618

    Re: Using a C++ DLL with C#

    OK.. Is there some way to rebuild the dll such that the names aren't mangled?
  19. Replies
    5
    Views
    2,618

    Using a C++ DLL with C#

    I have a 3rd party dll written in VC6.0 that I want to use within a C# application. When I call one of the exported functions I get a can't find entry point exception.

    The dll is called diodrv.dll...
  20. Re: What does "candidate function(s) not accessible" mean?

    Thank you very much. The MSDN explanation for this error is more cryptic than the error message.
  21. What does "candidate function(s) not accessible" mean?

    I have a new managed C++ Form project (my first) and if I try to declare a StreamReader object I get an error that I don't understand:


    private: System::Void Form1_Load(System::Object^ sender,...
  22. Replies
    4
    Views
    3,355

    Re: C# strings and char arrays

    That worked. Thanks very much.
  23. Replies
    4
    Views
    3,355

    Re: C# strings and char arrays

    Thanks very much for the reply. Oddly, the TrimEnd method doesn't seem to work. The string remains unchanged (the copy, that is) still retaining the '\0' characters on the end. I'm pretty sure I have...
  24. Replies
    4
    Views
    3,355

    C# strings and char arrays

    I'm a C/C++ guy trying to learn C# and I'm converting some of my C code into C# for learning.

    In the following snippet of code, the char array temp[] gets initialized as nulls '\0'. If I turn the...
  25. Replies
    4
    Views
    650

    Re: Making system menu go away

    Thank you, that worked.
Results 1 to 25 of 298
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured