Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Valius
  • Content: Threads
  • Order by date
  1. Valius

    Question about Threads

    Okay, lets say I have a ThreadProc that I have defined and I start that thread...now, when a certain event happens in the thread, I start another one with the same ThreadProc. So in essence, I have two threads running that are using the same ThreadProc. Now, my question is this, even though...
  2. Valius

    MAPI problems, please help

    Okay, here is my problem. I've been able to use MAPI in my program to send out emails and able to populate the TO and CC fields. I want to be able to send "On Behalf" of someone, but it's not letting me. I'm making a MapiRecipDesc and filling it with all the info, but using...
  3. Valius

    Window update problems....help

    Okay, this is just silly. I have a menu and when a user select a certain item, I disable the menu by using: EnableMenuItem(hHandle, Position, MF_BYCOMMAND|MF_GRAYED); Well, it doesen't update my menu...so my menu still appears that it's not grayed...but when you run your mouse over it and try...
  4. Valius

    What exactly is HUGEP?

    When dealing with _variant_t, I've noticed that to pull data out of the Safearray within parray I have to use a HUGEP type like this: BSTR HUGEP Data1; //or long HUGEP Data2; //depending on the type that's in the //_variant_t My question is what the heck does HUGEP do? My...
  5. Valius

    "Hook" type program?

    Have a thought provoking question. Let's say that I had a program that was using the registry and another program that read those values the first program was putting into the registry. Is there some way I can use a "hook" of sorts that I can setup so that I will know when something...
  6. Valius

    Scope question

    Okay, I have a question about scope. Here is the situation: We have the main function...let's call it Main(). Within main, I have declared a local varible...let's say char* TempVar. Now, from within Main() I call another function...Let's call it bool SubMain(). In that function I do a few...
  7. Valius

    Need info on Graphic operations [BitBlt()]

    I've been messing with some basic Win32 graphic stuff cause I just want to learn how it works. I have created a bitmap, gotten a handle to the client window screeb and created a compatible memory DC to my screen and selected that bitmap object to my memory DC. I can successfully copy that...
  8. Valius

    Win32 and WS_TABSTOP

    Okay, this seems simple enough, but when I try it, it won't work. I've created two edit boxes by using the CreateWindow() function. I have given them the styles of WS_TABSTOP|WS_DLGFRAME|ES_UPPERCASE|WS_VISIBLE|WS_CHILD and I have given them the handle to the parent window. Now, when I run...
  9. Valius

    ODBC API

    Hello all, I have a problem that I can't figgure out and maybe you guys can help. I've been using the ODBC API (sql.h) in C++ to connect to a SQL database. Well, the interesting thing is that I can connect to the pubs DBC and execute a SQL statement and see how many columns are returned...
  10. Valius

    Database connectivity using C/C++

    I hope I can make sense here. I've been using the MSADO.dll to access a SQL server through ADO. That works fine, but I want to be able to do that differently without using MFC or anything like that. I guess I want to make my own class of DB connectivity and I was wondering how I could do that...
  11. Valius

    InitCommonControlsEx() Help

    I'm trying to use this so I can get the ListView control...but I keep getting: unresolved external symbol _imp_InitCommonControlsEx@4. I don't know why I keep getting this error...it doesn't make sense as to why I get it. This is what I have...in my headers I have included the <windows.h> and...
  12. Valius

    WM_COMMAND Help

    Okay, I have another question. I have created two buttons on my little app...I can see that the WM_COMMAND message is issued each time I click on them. My questions is: How in the world can I tell which button was pressed when it sends the WM_COMMAND Message? My guess is that it is in the...
  13. Valius

    Win32 help

    Hey guys...I'm trying to transition from &quot;good ol&quot; MFC to the Win32 API. I need help in creating a button. I've got my program to create and register a windows class just fine and the program runs. I tried creating the button using CreateWindow in the WinMain() function. When I run...
  14. Valius

    Help in building a DLL

    Hey guys, I'm wanting to build a DLL. This is the first time I've done it, so I need some help. I made a new project and made it a Win32 Dynamic-Link Library. I imported a .cpp and .h file and compiled it. It compiled fine and I got a .DLL file. But when I tried to #import it into my MFC...
  15. Valius

    SetTextColor

    I've seen some of these threads that say to use SetTextColor on changing the color of a static, but I have had no luck. It stays the same color no matter what I do. Some help on this matter would be greatly appreciative. Here is what I have so far. error =...
  16. Valius

    CFile problems

    This seems simple enough...I've done it plenty of times, but not using the CFile class. I've got a text file open and after I write a string of text to it, I want to insert a carriage return....again, seems simple enough...here is my code. CFile Testfile (&quot;C:\\testfile.txt&quot...
  17. Valius

    Memory leak problem

    I've got a pointer declared like so: char *SomeChar; SomeChar = new char[10]; I then want to delete it before my program quits...so I do this: SomeChar = 0; delete SomeChar; Is this correct to free up mem? If so, I think I know where the problem may lie. Thanks in...
  18. Valius

    Need confirmation on CFile::Write()

    I have a pointer: char *SomeCharPointer = new char[10]; Lets say I want to write to a file: CFile SomeFile(&quot;C:\\bla.txt&quot;, CFile::modeWrite|CFile::modeCreate); SomeFile.Write(SomeCharPointer, sizeof(SomeCharPointer)); Now, when I do this, I only get the first 4...
  19. Valius

    Another sockets question

    I've been racking my brains out here trying to figgure out the logic to this...maybe I'm going about it the wrong way. Here is my problem: Let's say we have a server and two clients connected to the server. One of these clients sends a message to the server which, in turn, fires the...
  20. Valius

    A Pointer to pointers?

    This is what I have.... CAsyncSocket *MySocket = new CAsyncSocket[10]; MySocket[0].Create(); I want to access it this way... MySocket[0]->Create(); How can I declare a pointer to a pointer? Does this make sense? Thanks in advance! Niky Williams NTS Marketing...

Part and Inventory Search

Back
Top