|
|
.S.Rod. wrote:
Yes, but a stupid moron spent time on this and published a useful tool for everyone.
And it works very well. Saved me a couple of headaches in recent weeks when I found that a third party library wouldn't link with VC.NET and I had to go back to using VC6.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
Hi!
I think there is an project file converter 7.0 --> 6.0 done by S.Rod. here on codeproject.
Haven't tested it though...
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
|
I've used it and it works very well.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
i have a control.in the control there is something show.i want save the control's show to BMP file.event when the window be minimized.how can i do that?
|
|
|
|
|
There are heaps of ways to save bmp's, some here on CP, others mentioned in the FAQ. To get the bitmap off the control, you can just use BitBlt, either from the screen DC, or see if it's possible to get a DC from the control ( I think so, but I can't remember ).
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
you cannot grab the window if it is minimized; the window must be visible and on top of the other.
|
|
|
|
|
hey how do I know which tab is selected? i handle to tab change message but i cant figure out which tab it not active.
thanks in advance
luke.
|
|
|
|
|
hey i firgured it out, now i feel dumb for asking so don't worry,
Luke
|
|
|
|
|
hey is there a way to make the apps built in vc.net use the last version of MFC not 7.0 or which ever it is that comes with vc.net?
thanks, bye
luke.
|
|
|
|
|
No.
Why would you want to do this? If you don't want to distribute the MFC7 dll's then you can always link MFC as a static lib.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
Hi,
currently I work with a CSocket derived class to poll UDP servers and receive some packets from them. But there's one function CSocket does not seem to provide: A timeout for the receive function. I want my program to wait no longer than 1 second for the server packet receival. Is there a way to accomplish this?
thanks in advance
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You might want to try using CAsyncSocket instead. From the MSDN, it appears to give you more control over blocking.
Another option would be to have a 'watchdog' thread. Each time the receive thread tries to read a packet, it should reset the watchdog timer. The watchdog thread waits for the watchdog timer to expire. If the timer ever expires, the watchdog thread handles the timeout condition, perhaps by terminating the receive thread, closing the socket (which will return an error to the receive thread), or whatever action is appropriate to your application.
Software Zen: delete this;
|
|
|
|
|
Thanks!
I tried a simple timer (without a second thread). Seems to work fine however
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi all
I am wondering where i can find some information or example about how to create a new moniker of a program, especially url moniker. i've read the articles in MSDN about moniker, but it doesn't tell how to implement the interfaces and others.
anybody can provide me some articles or books i can find that in?
|
|
|
|
|
I am new to programming but I need to make a message box pop up on my screen everday at 5pm. From what I understand I need to use the ontimer function to do this. I was given some instructions on how to do it in the past but I didn't understand enough of the terms to do what was being talked about. Does anyone have some source code with some simple instructions that show how I could do this? Thank you very much. Mavrock
|
|
|
|
|
Well, you can use WM_TIMER, but I wonder if you'd be better off figuring out how to poll the system clock. Obviously you still need to use a timer, but it would be more reliable than trusting the timer alone. Create an MFC project, dialog based, hit CTRL_W to bring up the class wizard, add an OnTimer message handler. In your initial code add something like:
SetTimer(42, 60000, NULL);
Then in your OnTimer, check the timer id to see if it's 42, if it is, check the time and then either reset the timer for another minute, or show your message box.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
How can i detect the current system XP color scheme...
|
|
|
|
|
I'm working on an ATL Control for performing some graphic operations to be deployed to users in VB. I've got all my properties persisting etc, but while the control is in the development environment, and a property is changes, how do I get the windows to redraw ??
Currently the form containing the control must be closed, and then reopened.. There must be a better way.
This control doesn't use MFC.
|
|
|
|
|
Never mind, after further searching I found the answer.
You have to Call FireViewChange() after changing a property value.
http://msdn.microsoft.com/library/en-us/vcmfc98/html/vcconexampleimplementingpropertypage.asp?frame=true
|
|
|
|
|
just wondering, how to "calculate" average "request per second" given the number of employee in an organisation?
i need this figure so that I can conduct a test with Application Test Center
Thanks.
norm
|
|
|
|
|
What do you mean ? Are you asking about asp page requests ( I'm guessing based on what else you've been asking about ) ? If so, this is the wrong forum, and there is no real way to answer it. Are the employees going to use your system non-stop ? How long will they look at each page ? There are a lot of variables to consider.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Just want to general direction. I wish SQL server to notify a windows service i write everytime table schema has been altered as opposed to having the service to periodically poll the database via ADO or ODBC (that'll work, but a bit amateur). Yet one other option is to monitor transaction log for ALTER DATABASE. Is it true that this must be done thru DMO? and direct access to trn files should be avoided?
i was thinking triggers, but they are for insert/update/delete
is there any "trigger" for schema change, say, drop column? ALTER DATABASE? Once this problem is solved, I can communicate with a Windows Service via one of the following mechanism...
OPTION 1: OLE Automation Procedures: Allows standard OLE automation objects to be used within a standard Transact-SQL batch. So, I'll use a stored procedure to invoke a COM server to inform the windows service that table schema has been changed.
For instance:
sp_OACreate progid, | clsid,
objecttoken OUTPUT
[ , context ]
OPTION 2: xp_cmdshell (security concern)
OPTION 3: DTS to export schema to a flat file.
Unfortunately, All requires some sort of mechanism that invoke the store procedure or DTS package. And Triggers cant do the job.
Any suggestion?
norm
|
|
|
|
|
Hi,
I just need to need how to play a midi instrument sound... Please, not how to playback midi-files - just how to play different notes!!!
I have currently got a working program using only MFC that reads the midi-in, but I might switch to directX if that is easier to implement...
(I am trying to write a program that reads tones from midi-in, and then plays three notes tango-style based on the note hit on the midi-keyboard...)
Thanks alot,
|
|
|
|