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

Search:

Type: Posts; User: soltechX

Page 1 of 8 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: A char[] with a CString? Driving me mad???

    THANK YOU very much.

    This solved the problem, and i have been on with it for over 2 days now.

    I am very gratefull, and thanx again

    Steve
  2. A char[] with a CString? Driving me mad???

    Hi everyone.

    I have the following function that converts a base32 encoded string back into raw data.

    However, the second argument is a const void *

    If i pass a char[] into this argument, the...
  3. Re: Someone please advise on correct variable decleration here?...

    Thank You
  4. Re: Someone please advise on correct variable decleration here?...

    Yeah. Unfortanatly i know that you are correct.
    Could you advse me where to learn this kind of stuff.

    ALL c++ and Visual c++ books that i own or looked at dont seem to cover WHEN and WHY we use...
  5. Replies
    4
    Views
    663

    Re: error debugging the code...

    Are you staticaly linking to the mfc runtime, if you are, i sugest you link dynamicaly as this is also recamendad by microsoft.

    To do that try the following

    Goto: Project -> Properties ->...
  6. Replies
    4
    Views
    663

    Re: error debugging the code...

    Hi, i had same problem.

    You have to do the following, and it should work, also, i still have no problems debugging provided i use a debug build.



    GoTo : project -> Properties ->...
  7. Re: Someone please advise on correct variable decleration here?...

    Thank you for the reply, i have used the debugger, and i have traced the problem, but under the curcumstances, i dont know what to do, could you be so kind as to take a look?

    ok.....

    After i...
  8. Someone please advise on correct variable decleration here?...

    Hi.
    Could someone please scan over the following (mainly) variable declrations.

    I know i am doing something wrong but not sure what, first of all here is the actual code in my app - allbiet a ...
  9. Re: Does passing a char[] into a function change the currupt the data?

    Hmmmmm, i dont know. This is how the code was already written.

    Anyway, i have solved the problem, it was the sizeof that was causing it.

    Thanks anyway everone.
    Steve
  10. Does passing a char[] into a function change the currupt the data?

    Hi,
    i have a static variable as follows...


    char *pub_key = ("-----BEGIN PUBLIC...
  11. Base32 Encode/Decode, but can only find Base64...Please?

    Hi everyone.

    I can find many examples, including on this site, of Base64 Encoding and Decoding class.

    But for some reason, i am unable to get much on Base32 Encoding/Decoding?

    I simply want...
  12. Replies
    6
    Views
    880

    Re: Using a progress bar with this code???

    I have uploaded my project, i hope you can help.

    Please note the following, as it is noway near finished.

    1) I have it set so that it expects a text file named shredd.txt in the c: directory to...
  13. Replies
    6
    Views
    880

    Re: Using a progress bar with this code???

    This is the problem, how do i know

    You see. i want my progress bar to start running while the file is being overwritten, this will be different times depending on how many passes are chooses, but...
  14. Replies
    6
    Views
    880

    Using a progress bar with this code???

    Hi everyone. I want to use a progress bar that will show the user how long is left.

    My application securely deletes files, based on a certain number of passes.

    I have included all of the...
  15. Replies
    9
    Views
    976

    Re: Write to a file

    Ur welcome
  16. Replies
    9
    Views
    1,289

    Re: Use CFile to open to CString

    Why not?, is there a problem doing this?


    Why not use CStdioFile with CStrings? i use it and have no problems with that?

    Just a thought....
  17. Replies
    9
    Views
    976

    Re: Write to a file

    To convert a numeric value to a string, do something like...


    int num = 64;
    CString strNum;
    strNum.Format("%d", num);

    Hope this helps...
  18. Replies
    9
    Views
    976

    Re: Write to a file

    One method i use:


    CFile file("c:\\Filename.txt", CFile::modeRead | CFile::shareDenyNone);
    DWORD dwSize = file.GetLength();
    BYTE* pData = new BYTE [dwSize];
    file.Read(pData, dwSize);
    ...
  19. Re: Saving multiple structs with CFile....new file type

    thank you, but because this is my own file type, using structures i dont waht to use serialisation.

    Can anyone assist?
  20. Saving multiple structs with CFile....new file type

    Hi.
    If i have my own file type, say for storing employee records, and i need to save 2 structs to the file in binary, using CFile and also read them back in how would i go about it?

    e.g


    ...
  21. Replies
    6
    Views
    1,015

    Re: a for loop to do the follwoing?...

    Thanx alot. Basicaly what i need, and certanly a good start to more indepth requirments.

    thanx again
  22. Replies
    6
    Views
    1,015

    Re: a for loop to do the follwoing?...

    Code you please be a little more specific?

    Thanx
  23. Replies
    6
    Views
    1,015

    Re: a for loop to do the follwoing?...

    Thank you.
  24. Replies
    6
    Views
    1,015

    a for loop to do the follwoing?...

    Hi.
    How would i go about writing a loop that will do the following?

    Say i have a string like follows:

    ("0000000A")

    Now i want to loop through the string, outputting ALL possible...
  25. Re: what does this do? Result = (Result

    Aww, i see.

    You made it look so simple, hehe.

    Anyway, thank you for that explanation.
    Steve
Results 1 to 25 of 176
Page 1 of 8 1 2 3 4





Click Here to Expand Forum to Full Width

Featured