Search:

Type: Posts; User: Dark_Phoenix

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    923

    problem with pointers

    I am developing a simple personal finance program. In this program I have a class (CAccountViewer) that simply displays the transactions from a particular account and also allows to enter new...
  2. Replies
    7
    Views
    5,248

    I'm begining to think that Bubba is right. The...

    I'm begining to think that Bubba is right. The above code is being called (and the error is occuring) when the program exits. I think the problem is due to the way I am exiting. I am calling the...
  3. Replies
    7
    Views
    5,248

    I hate debugging.... That is the line that the...

    I hate debugging.... That is the line that the dubbuger is reporting the access violation on. Not sure what it is or how to narrow it down any further than that.....?
  4. Replies
    7
    Views
    5,248

    Here is the "do some stuff" part (added to OP if...

    Here is the "do some stuff" part (added to OP if that makes it easier..)


    {
    SAccountInfo AI = iter->second.GetAccountInfo();

    if (!oFile.Write(AI.AccountName) )
    {...
  5. Replies
    7
    Views
    5,248

    Access violation in std::map

    I am getting an access violation when tring to access elements in a std::map. The violation occurs on the red line below.


    typedef std::map<wxString, CAccount> mapAccountList;
    class...
  6. Replies
    5
    Views
    2,134

    OK, I got it... I split my test pogram like you...

    OK, I got it... I split my test pogram like you suggested and I see what you mean. So now I have


    struct DATA
    {
    char s1[30];
    char s2[30];
    int i1;
    int i2;
    ...
  7. Replies
    5
    Views
    2,134

    Thanks. serialization is what I have been doing...

    Thanks. serialization is what I have been doing when working with std::strings, was just playing around with some ideas. I had a feeling that this would not work right, just did not quite...
  8. Replies
    5
    Views
    2,134

    read / write binary files

    I have two questions with reading / writing complex data in a binary file. I have this code which saves a complex type (struct) in a binary file.


    #include <iostream>
    #include <string>
    #include...
  9. Replies
    2
    Views
    1,874

    Yeah, that's one of the very few hits I got on...

    Yeah, that's one of the very few hits I got on google. I know how it's done I just don't know what software package I can use to communicate with the server.

    Anyone?
  10. Replies
    2
    Views
    1,874

    Phone system

    Anyone know anything about PBX phone systems? We are switching some office around at my work and want to change the display names on the phones to match the extensions. The way I understand it is...
  11. Replies
    1
    Views
    1,258

    OK, I figured it out... forgot to put a break in...

    OK, I figured it out... forgot to put a break in my DialogProc. Anyway, here is what I have... It works but I want to know if it is right?



    LRESULT CALLBACK MainWinProc(HWND hWnd, UINT Msg,...
  12. Replies
    1
    Views
    1,258

    Problem creating a Dialog Box

    This is giving me an error 'Invalid Window Handle' but I can't figure out why.



    LRESULT CALLBACK MainWinProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
    {
    switch (Msg)
    {
    ...
  13. Replies
    8
    Views
    2,691

    OK, I see... That makes sense. So as long as all...

    OK, I see... That makes sense. So as long as all the definitions have a matching declaration in the .h file then extern c is not needed in the cpp file.

    Now, would the same hold true for class or...
  14. Replies
    8
    Views
    2,691

    I thought so... I was going by both MSDN's...

    I thought so... I was going by both MSDN's example, which I though was a bit hard to follow, and this one, which shows the extern "C" only in the .h file. I went back and added it to the .cpp file...
  15. Replies
    8
    Views
    2,691

    ok, nevermind... i had an IDE setting wrong. ...

    ok, nevermind... i had an IDE setting wrong. It's working now.
  16. Replies
    8
    Views
    2,691

    creating a simple DLL

    I created my first (VERY) simple DLL that contains 3 functions... add, subtract and multiply. I then created a program to test the DLL. Problem is the add function works fine but it seems like the...
  17. Replies
    12
    Views
    1,336

    This sounds interesting. I don't have any...

    This sounds interesting. I don't have any experience with creating and using DLL's but this could be good project for me to gain some more knowledge with.
    So in theory I could create a basic menu...
  18. Replies
    12
    Views
    1,336

    I have looked into other laguages that do support...

    I have looked into other laguages that do support this but (for now) I kinda want to stick to C/C++ until I have a better understanding of the language.
  19. Replies
    12
    Views
    1,336

    Right. So if I am having to go in and map all...

    Right. So if I am having to go in and map all the menu string-function pointer pairs anyway, then is there any point in having the external text file? Seems like it would be just as easy to hard...
  20. Replies
    12
    Views
    1,336

    function pointers

    I'm working on a "Menu Manager" that will let me display menus that are saved as a text file. This way I can add or remove menu items without having to recompile the whole program. The problem I am...
  21. Replies
    3
    Views
    1,029

    image enhancment

    Anyone know of some good, perferable free or free demo, image enhancement software? I have a digital picture of some parts that have rather small writing on them that is blurred. I want to be able...
  22. Replies
    9
    Views
    8,347

    Nice utility, Thanks for that And that was...

    Nice utility, Thanks for that

    And that was the problem, I was not calling InvalidateRect()

    Thanks for all the help guys!
  23. Replies
    9
    Views
    8,347

    Well, looks like it may be in how I am creating...

    Well, looks like it may be in how I am creating my framework. I've used this method in some simpler programs that have worked fine but now it seems like it is broken somewhere...

    Basic functins...
  24. Replies
    9
    Views
    8,347

    I wish it was that easy (or is it?) but I want to...

    I wish it was that easy (or is it?) but I want to be able to add some other controls to the dialog as well.

    So I tried something a little easier... printing some text in response to a menu...
  25. Replies
    9
    Views
    8,347

    Thats what I thought at first too... So I put in...

    Thats what I thought at first too... So I put in some code to check the handles...


    inline void DisplayHandle(const char *text, HWND hWnd)
    {
    std::stringstream ss;
    std::string s;
    ...
Results 1 to 25 of 175
Page 1 of 7 1 2 3 4