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

Search:

Type: Posts; User: dellthinker

Page 1 of 12 1 2 3 4

Search: Search took 0.21 seconds.

  1. Replies
    1
    Views
    422

    Build source with dll

    As the title says, I've been looking all over for a simple step-by-step guide to build my source with a custom .dll that I've written. I'm getting familiar with VC++ 2010 but I can't find anything...
  2. Replies
    3
    Views
    1,173

    Re: GetLastError understanding

    Disregard that post, I figured out the problem. It was a stupid mistake on my own part. Thanx for any consideration.
  3. Replies
    3
    Views
    1,173

    GetLastError understanding

    My program crashes when it gets to a certain part of the code. I call ...



    cout << GetLastError() << endl;


    But 0 gets returned. My code ...

    Source #1
  4. Replies
    4
    Views
    913

    Check for running HANDLE

    As the topic say's, I'm trying to find out how to test if a thread HANDLE is already in use. Or more simply, if a thread is already running. What if condition would I need to test to check if a...
  5. Replies
    12
    Views
    3,061

    while loop before CloseHandle()

    I've been wondering if my program ever executes the following ...



    HANDLE thread1=0, thread2=0, thread3=0, Array_Of_Thread_Handles[3];
    ...
  6. Replies
    1
    Views
    497

    Function delay

    I have to download a text file from my web server then call a read function that uses ifstream. Both work separately with no problems but when I try to get them to work together it fails miserably....
  7. Replies
    9
    Views
    3,896

    Re: vector vs. deque

    > I don't know what you're referring to. Please explain.

    I suppose my original question that I didn't ask was which of the two would have a greater capacity as far as holding array's of strings or...
  8. Replies
    9
    Views
    3,896

    vector vs. deque

    I'm finally seeing C++ coding in a different light, maybe the same as the more advanced developers here. I've recently found out that vector's are probably the 'best' way of storing array...
  9. Thread: STL array

    by dellthinker
    Replies
    4
    Views
    614

    Re: STL array

    How would I access lines to retrieve the data? vectors are very hard for me to get.
  10. Thread: STL array

    by dellthinker
    Replies
    4
    Views
    614

    STL array

    If I were to declare a string, and allocated 30 arrays with a length of 40, but I only used probably 15 arrays, that wouldn't make a difference in program performance would it? I've done things like...
  11. Replies
    5
    Views
    578

    Re: String problems

    Because I learn better if I try to find out 'why' something went wrong.
  12. Replies
    5
    Views
    578

    String problems

    I'm trying to access a string array by outputting each member of the array like so ...



    int main(){
    string str;
    string lines[5] ={ "Line1:", "Line2:", "Line3", "Line4:", "Line5"};
    ...
  13. Replies
    8
    Views
    1,888

    Re: How to delimit char array

    For example



    cout << "Enter some text " << endl;
    cin >> input; // Typing "This is only a test"


    The word 'This' and 'only' would be parsed/delimited/erased in the final output is what I'm...
  14. Replies
    8
    Views
    1,888

    Re: How to delimit char array

    The exact reason why I posted my problem here.....I tried something and failed and am now looking for a way to resolve it.

    Can someone offer some real advice now?
  15. Replies
    8
    Views
    1,888

    How to delimit char array

    I have a list of key words in a char array that I would like to parse or delimit. Whatever the term used for this method, basically I want my function to "filter" out the words that are in my array....
  16. Replies
    3
    Views
    1,204

    Re: Callback definition

    So my hypothesis was correct. A function passing another function as a parameter to another function. Sorry if I don't use the terms that your used to but I understand things better if I simplify...
  17. Replies
    3
    Views
    1,204

    Callback definition

    To my understanding, a "callback" is when one function calls another function, passing parameters. Is this correct? Or can it be function1 calling and passing the parameters or returning a value from...
  18. Replies
    1
    Views
    636

    Winsock beginner

    So I've decided to put some effort into learning Winsock, I found this tutorial here: http://johnnie.jerrata.com/winsocktutorial/ yesterday and started my coding.



    #include <windows.h>...
  19. Replies
    1
    Views
    2,162

    WINAPI OpenFile

    Sometimes I hate how these API's are designed. Can someone tell me what OFSTRUCT is and how to declare it? According to MSDN for OpenFile() ...



    I understand the first and third parameter...
  20. Replies
    18
    Views
    1,294

    [solved]

    I have found the solution...



    int main(){
    HKEY hkey;
    DWORD dwDisposition, lRes = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\MICROSOFT\\Testing",0,KEY_WRITE,&hkey);
    char...
  21. Replies
    18
    Views
    1,294

    Re: Writting to registry

    For the most part.



    int main(char **argv,int argc){
    HKEY hkey;
    DWORD dwDisposition, lRes = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\MICROSOFT\\Testing",0,KEY_WRITE,&hkey);
    ...
  22. Replies
    18
    Views
    1,294

    Re: Writting to registry

    >4. You must not call RegSetValueEx unless RegCreateKeyEx returned ERROR_SUCCESS

    Isn't that what I was doing? Also this works fine if I defined a null terminated string like this ..



    char...
  23. Replies
    18
    Views
    1,294

    Re: Writting to registry

    Understood, but that still doesn't set a value. Can I have a hint on how I should go about doing this?
  24. Replies
    18
    Views
    1,294

    Writting to registry

    I'm trying to set a registry value with the file path of the program using the following code...



    int main(char *argv,int argc){
    HKEY hkey;
    DWORD dwDisposition, lRes =...
  25. Replies
    10
    Views
    1,153

    Re: WinInet function error checking

    Does anyone think it could be because I'm passing a string literal ( 'A' ) instead of "A"? This might be the problem in this line ..



    while(getline(iss, token, ' ') &&...
Results 1 to 25 of 292
Page 1 of 12 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)