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

Search:

Type: Posts; User: bioHzrdmX

Search: Search took 0.05 seconds.

  1. Replies
    0
    Views
    7,341

    Modal dialog loop

    Hi,

    I'm writing an small library to wrap some Win32 functions for windowing, and i'm having an small issue with modal 'dialogs'. I've created a wrapper for the basic windows (CWindow) and derived...
  2. Replies
    6
    Views
    9,412

    Re: ODBC: Retrieveing large data

    Thanks Paul, I will try with your method.

    So it goes like this: get everything as TCHAR, store and then cast/parse as required. I guess this is the way in which MFC does it.

    Again, thanks for...
  3. Replies
    6
    Views
    9,412

    Re: ODBC: Retrieveing large data

    Thanks Paul,

    I've read the ODBC section of the WinSDK back and forth and never got this clear, so thanks again for your reply.

    So it leads to another (and the last one, I promise) question:...
  4. Replies
    6
    Views
    9,412

    [RESOLVED] ODBC: Retrieveing large data

    Hi everyone.

    I'm working on a set of classes to wrap some of the ODBC functionality (connection, statements and resultsets) on Win32 using VC++.

    Connection and statements were pretty easy, the...
  5. Re: How exactly do you create such "transparent" controls?

    Here's the code. :)

    It was very hard for me to find out how to do this, there is a lot of information for C# and WPF but not so much for VC... I've also found a couple of interesting tutorials:
    ...
  6. Re: How exactly do you create such "transparent" controls?

    This could be easily done even without using WPF :)

    Just extend the non-client area into the client area (using DwmExtendFrameIntoClientArea) and drop a few owner-drawn or custom controls in the...
  7. Thread: POS Printer

    by bioHzrdmX
    Replies
    0
    Views
    3,732

    POS Printer

    Hi,

    I'm writting an administrative system for an elementary school (using MFC) that will connect to a database to store the student's data, payments, etc... The system will run on a Windows XP...
  8. Replies
    36
    Views
    6,661

    Re: Am I ready for C++ and MFC ?

    Hi DanLeon,

    MFC is one of the most powerful frameworks out there, it has a great set of classes to do a lot of things, and if you know how, you can expand them to do almost everything.

    That is...
  9. Re: Need clarification about CreateFontIndirect

    Hi! The font creation functions will *never* fail, because the system will return the handle to a font that is similar to the one you described with the fontfamily, pitch, width, etc... parameters...
  10. Replies
    15
    Views
    2,047

    Re: Question from begginer

    Hi, the problem here is that your friend hasn't the runtime files required by VC executables to run. To fix this, simply go to the microsoft downloads site and search for 'VC2010 runtime...
  11. Replies
    32
    Views
    5,830

    Re: Working with registry

    Hi, sorry about the PM thing, i just forgot to turn it on :-)

    Unicode may be a bit confussing for some people (it was for me) but once you learn how to interact with it, you'll be ready to work...
  12. Replies
    32
    Views
    5,830

    Re: Working with registry

    Sorry, i forgot the HWND parameter, i wrote that code on an MFC app so it just needed the string parameter (as Dadidum said).

    To get the code working just change:


    MessageBox(tData);...
  13. Replies
    32
    Views
    5,830

    Re: Working with registry

    It's because you're using Unicode:

    Windows has two ways of managing characters, the simple, common form (char type) and another, more 'advanced' that supports foreign-language symbols, that used...
  14. Replies
    32
    Views
    5,830

    Re: Working with registry

    Just an small example, this will retrieve your windows product name from the registry, should work with XP/Vista/7, just check how you must open the key and then read the value you want, i don't know...
  15. Replies
    32
    Views
    5,830

    Re: Working with registry

    Everytime you want to get something from windows, you should add <windows.h> as it automatically adds all the headers from the sdk folder (installed with the vc++ compiler).

    For registry functions...
  16. Replies
    32
    Views
    5,830

    Re: Working with registry

    To check whether you have MSDN installed or not, simply hit F1 from inside the VS IDE, the help system will popup, just go to the Index tab and write RegOpenKeyEx, if the entry is found within the...
  17. Re: Access violation (VS2008, VC++ & MFC)

    Thanks for all your support!

    Finally i got this fixed, and guess what... It was a faulty pointer in one of the base classes and a .h file not being update (it had the wrong class declarations),...
  18. Replies
    32
    Views
    5,830

    Re: Working with registry

    Have you tried plain win32 API? I know is hard to get this to work for the first time, but i'm pretty sure you'll get a best result if you write your own code.

    Check the MSDN (or the VS docs if...
  19. Re: Access violation (VS2008, VC++ & MFC)

    Jajaja!! Thanks for the feedback, i'm pretty sure it's a bug from my own code, i'm checking every line to try to find the cause. Also thanks to VictorN, and to Paul McKenzie: i will try to leave the...
  20. Re: Access violation (VS2008, VC++ & MFC)

    Thanks for the reply, i'll try that but in the meantime, i've added a dummy variable below the m_rcMargins and voila! no more access violation, well, amost. Now i have a debug assertion on 'dbgrpt.c'...
  21. [RESOLVED] Access violation (VS2008, VC++ & MFC)

    Hi everyone, i'm having a very strange and annoying issue on a code i'm working on, i've tried a lot of things but none of them has worked so any help will be greatly appreciated.

    Here's the...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured