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.11 seconds.

  1. Replies
    2
    Views
    1,864

    Re: ForEach error

    Right now I'm using Code::Blocks 20.03 the latest version to revamp my coding skills. The very IDE the book suggested to use for most operating systems. The error I got suggested me to enable the...
  2. Replies
    2
    Views
    1,864

    ForEach error

    Hello everyone, I finally bought a C++ For Dummies book and can't be any happier learning from it, I've followed the books directions as it instructed and fell into a bit of trouble. Normally I trust...
  3. Replies
    1
    Views
    507

    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...
  4. Replies
    3
    Views
    1,270

    Re: GetLastError understanding

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

    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
  6. Replies
    4
    Views
    984

    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...
  7. Replies
    12
    Views
    3,381

    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];
    ...
  8. Replies
    1
    Views
    647

    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....
  9. Replies
    9
    Views
    4,222

    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...
  10. Replies
    9
    Views
    4,222

    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...
  11. Thread: STL array

    by dellthinker
    Replies
    4
    Views
    707

    Re: STL array

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

    by dellthinker
    Replies
    4
    Views
    707

    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...
  13. Replies
    5
    Views
    675

    Re: String problems

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

    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"};
    ...
  15. Replies
    8
    Views
    2,005

    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...
  16. Replies
    8
    Views
    2,005

    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?
  17. Replies
    8
    Views
    2,005

    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....
  18. Replies
    3
    Views
    1,298

    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...
  19. Replies
    3
    Views
    1,298

    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...
  20. Replies
    1
    Views
    716

    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>...
  21. Replies
    1
    Views
    2,442

    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...
  22. Replies
    18
    Views
    1,485

    [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...
  23. Replies
    18
    Views
    1,485

    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);
    ...
  24. Replies
    18
    Views
    1,485

    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...
  25. Replies
    18
    Views
    1,485

    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?
Results 1 to 25 of 294
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured