Peter,
Crud, that was a LONG time ago. I'm using the Crystal API now to do everything, more control. I'll take a quick look into it and see if I can figgure out what I did to fix it...I've slept since then so I'm not sure if I'll have any luck, but I'll give it a go. Can you post some of...
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...
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...
Yes, you could use a string...but you can also use the "int" type or "long" type since Degrees, minutes, and seconds are just pretty much numbers anyway. Since you will be doing math with them, it would be easier to have them as numbers instead of a string....if I understand...
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...
To get the handle to your CTreeView object, I think you can just use GetHandle();
CTreeView NameOfTreeView;
HWND HandleToMyTreeView = NameOfTreeView.GetHandle();
Is this what you were wanting?
Niky Williams
Lead Engineer
NTS Marketing, Inc.
"It works ok on debuggin' configuration but fails at the second attempt on release mode."
Be a little more specific with this quote...don't quite grasp what you are trying to say. Is it that the modless dialog is being created once just fine..but doesn't get created the second time...
Hmmm...what I'm getting is that you want your list to be always scrolled at the bottom so you can see your newly added strings? Well, I think you may have two options. One option is to have it so when you add the string to the list, it adds it to the TOP of the list. That way you don't have...
Is it that you are having problems piecing your SQL statement together with the data in the variables so you can execute the statement?
Niky Williams
Lead Engineer
NTS Marketing, Inc.
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...
Okay, I can run from there with those functions that install hooks. Probably won't be doing too much with them now that I know I can use messages. Thanks again for your help!
Niky Williams
Lead Engineer
NTS Marketing, Inc
I am currently using those API calls. The program I'm doing right now is pure Win32 API. Currently I just have a timer checking the registry every once and a while so the program knows what to do...least it will be like that until I can implement the messaging system you proposed. Thanks...
Oh, now THAT is a cool idea. I never thought of doing that. I didn't even think it was possible to send messages between 2 seperate programs. Thanks for the awesome idea! Just out of curiosity, if I wanted to look into hooks, where would be a good place to start? I mean, just give me a few...
Try using LoadMenu() to load up your menu resource and get a handle(HMENU) to it, then use SetMenu() to attach it to your current window. It's what I use when I don't use MFC...not sure how it will work for you. Hope this helps.
Niky Williams
Lead Engineer
NTS Marketing, Inc.
I believe Sleep() is a Win API call because it is defined in Winbase.h...it doesn't exist in a DOS based program. I'm not sure what you could us in the DOS environment...you may want to try just a simple empty loop. Kind of crude, but gets the job done.
Niky Williams
Lead Engineer
NTS...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.