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

Search:

Type: Posts; User: Alex F

Page 1 of 80 1 2 3 4

Search: Search took 0.28 seconds; generated 29 minute(s) ago.

  1. Replies
    2
    Views
    1,153

    Re: exponential format

    Can you use float data member instead of double? Otherwise, just use CString type and write formatting/validation code manually.
  2. Re: Code review request for displaying UI over the logon screen

    What about desktop Win32 application?
  3. Re: Code review request for displaying UI over the logon screen

    Just a thought: cmd.exe itself is a GUI process, like calc.exe. The difference is that it is written without .NET, WPF and other modern Windows crap.
  4. Replies
    3
    Views
    2,352

    Re: RegisterEvent C++ DLL wrapping in C#

    Use Marshal.GetFunctionPointerForDelegate Method. It returns IntPtr. Declare first parameter of RegisterEventHandler in C# as IntPtr and pass the value returned by GetFunctionPointerForDelegate to...
  5. Re: windbg Windows 7 64-Bit / Visual Studio 2010 Ultimate

    There are many small details in post mortem debugging. First, how dump file is created? If you use MiniDumpWriteDump, dump type should be at least MiniDumpNormal for native application. Assuming that...
  6. Re: windbg Windows 7 64-Bit / Visual Studio 2010 Ultimate

    "windbg is not acting correctly" - not too much informative. Did you set source, exe and .pdb directories in WinDbg? Is the program built with debug information? Do you have .pdb and source files on...
  7. Thread: Test RS232

    by Alex F
    Replies
    4
    Views
    1,470

    Re: Test RS232

    Do you know C# or any other .NET language? This is very simple task for .NET SerialPort class.
  8. Re: Convert From c# - For Report Viewer Report save as PDF

    array<System::Byte>^ Bytes = reportViewer1->LocalReport->Render("PDF", "");
  9. Re: How to make a std::thread live in the class scope?

    You can keep std::thread as class member. When you want to start it in any place, create another thread instance, specifying the thread function, and assign it to the class member, see thread...
  10. Replies
    3
    Views
    858

    Re: where is my library specified

    #pragma may be also in some h-file, which is not part of the project, but included to one of the project files. Look also at linker command line in the project properties.
  11. Replies
    3
    Views
    858

    Re: where is my library specified

    They can use
    #pragma comment(lib, ...)
    in some code file. There is also strange way just to add library to the project, like it is done with source files, this gives the same effect.
  12. Thread: awesome

    by Alex F
    Replies
    3
    Views
    873

    Re: awesome

    Fantastic. Incredible. Unbelievable.
  13. Replies
    6
    Views
    1,484

    Re: InterlockedExchangeRelease doesn't exist?

    Probably he means InterlockedCompareExchangeRelease function: https://msdn.microsoft.com/en-us/library/ff547867.aspx
  14. Re: Breaking up large class into manageable source files

    C++/CLI form designer places all code to h-file, and creates .cpp file with a single line #include "Form1.h" This is because it works by the same algorithm as C# and VB .NET designer. You can move...
  15. Replies
    22
    Views
    5,055

    Re: Opinions on my get/set approach

    Unreadable and undebuggable. Just use plain C++ code for every property. Don't forget that get functions are usually defined as const.
  16. Re: Copying one bmp file to another using fstream, Access violation reading location

    ofs_differential.write((char*)picture, ...);

    picture is already pointer, remove unnecessary &
  17. Replies
    3
    Views
    1,217

    Re: unfamiliar function declaration

    Yes, these two declarations are the same, and in this context there is no need to use the first one (though the code is correct). auto return type with -> return-type syntax is used in templates. ...
  18. Replies
    5
    Views
    4,020

    Re: Fill Array with even numbers only

    You can add internal loop and call rand until it generates desired number - odd or even.
  19. Replies
    3
    Views
    1,639

    Re: Child Window on top of control

    Probably you can explain this better, I don't think somebody can understand your question.
  20. Re: Erorr asigning pointer to iterator ( only after porting to VS2013 )

    OK, you can replace IncBuffer.insert with the code from my first post. Is there some problem with this?
  21. Re: Erorr asigning pointer to iterator ( only after porting to VS2013 )

    So, you need to add some buffer (char*) to vector. I don't see any reason to use vector iterator for reading plain char array. Please show some more code to get an advice how to rewrite it. For...
  22. Replies
    7
    Views
    6,243

    Re: How long is your build?

    7 min 16 sec 34 ms
  23. Replies
    3
    Views
    1,441

    Re: Unable to pass arguments to DLL function

    This is not mangling, it just causes GetProcAddress to fail. Maybe calling convention. Anyway, instead of these explanations, please post your code.
  24. Re: How to determine cross platform type during file save?

    Maybe you can detect whether lpszPathName is a network path, and then ask user to select line-end type. If file name is local, save with Windows line-ends.
  25. Replies
    3
    Views
    793

    Re: Incorrect result in Bitwise operations

    What is initial data[j] value?
    Can you reduce this sample to single line of code, with hard-coded j value, which is supposed to give some result, but gives something else?
Results 1 to 25 of 1992
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured