|
have a look at OnTimer() /KillTimer() function in the MSDN...
boring...
TOXCCT >>> GEII power
|
|
|
|
|
OnTimer() is limited to 55 milliseconds regardless of the time-out value you set, so this will not work.
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnargame/html/msdn_dos2win.asp
The Multimedia Timer. The multimedia extensions to Windows include a high-resolution timer, invoked with timeSetEvent, that has a resolution of 1 millisecond. Besides having this higher resolution, the timer can produce more accurate results because it does not rely on WM_TIMER messages sent through the queue.
In fact, each multimedia timer is put in its own thread, and the callback function is invoked directly regardless of any pending messages or other things that may be going on. That's an important point, because it means you have to be careful about accessing global data—a variable could be changed by your timed procedure, for example, just as some other function called in the normal message-processing loop is using that data. If you do set up a multimedia timer, make sure you understand about synchronization, semaphores, and all the other apparatus of multithread programming. (Schildt [see bibliography] gives a good overview.)
To use timeSetEvent you must include MMSYSTEM.H and link in WINMM.LIB.
|
|
|
|
|
|
i think our CP guys already posted some good articles here.
pls browse through..
I want to change Myself..Can u help me?
|
|
|
|
|
See if this article helps.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi, I'm a newbie in developing mobile applications. I've recently installed eVC4.0, and created a simple "Hello World!" application. I don't have any handheld device. When I try to execute this application, I get a dialog box "Connecting to the device" which ultimately fails. The Active Configuration is WCE Emulator Debug , and Default Device is STANDARDSDK Emulator . Can some one please tell me:
1. What am I doing wrong ?
2. How to connect to the emulator ?
3. Configuring Platform Manager (available in Tools > Configure Platform Manager)
Thanks in advance.
Gurmeet S. Kochar If you believe in God, it's because of the Devil
My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|
|
|
Try the Embedded/Mobile forum, you'll have more succes there
|
|
|
|
|
try this website
http://www.pocketpcdn.com/qa/emulator_loopback.html
rzn
|
|
|
|
|
The emulator needs an active TCP/IP connection, as you've discovered. The simplest way to handle this is to install the Microsoft Loopback Adapter and configure it.
See Installing the Loopback Adapter[^] for details.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hey that was of great help. Thank you very much.
I am posting the solution below in case any one else also has the same problem:
To install the Microsoft Loopback Adapter in Microsoft Windows XP
1. Open Control Panel, choose Add Hardware, and then choose Next.
2. Choose Yes, I have already connected the hardware, and then choose Next.
3. From the Installed hardware list, select Add a new hardware device, and then choose Next.
4. Choose Install the hardware that I manually select from a list (Advanced), and then choose Next.
5. From the Common hardware types list, select Network adapters, and then choose Next.
6. From the Manufacturer list, select Microsoft.
7. From the Network Adapter list, select Microsoft Loopback Adapter, and then choose Next.
8. Choose Next, and then choose Finish.
To install the Microsoft Loopback Adapter in Microsoft Windows 2000
1. Open Control Panel, choose Add/Remove Hardware, and then choose Next.
2. Choose Add/Troubleshoot a device, and then choose Next.
3. From the Devices list, select Add a new device, and then choose Next.
4. Choose No, I want to select the hardware from a list, and then choose Next.
5. From the Hardware types list, select Network adapters, and then choose Next.
6. From the Manufacturers list, select Microsoft.
7. From the Network Adapter list, select Microsoft Loopback Adapter, and then choose Next.
8. Choose Next, and then choose Finish.
Thank you very much Mike
Gurmeet S. Kochar If you believe in God, it's because of the Devil
My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|
|
i am learn splitter window and many views in <<inside vc++6.0="">>version 5,
where to find useful material and information of splitter window and many views?
and i don't clearly understand "onupdate()"and "oninitialupdate()",although i have seen msdn,but i want to find practical example to understand,can you give me some instruction and information?if you do,thank you ,progress need communication.
|
|
|
|
|
I want my project to get installed on PC's rather than i dump the *.exe file on the PC's.
|
|
|
|
|
why don't you get a information about install sheild
let me sleep
|
|
|
|
|
try Installsheild for vc++ or SMS installer.
SMS installer is kinda simple ..try that
I want to change ..Can u help me?
|
|
|
|
|
|
|
How can I access a report at runtime and also can I do filtering at runtime. Or do I have to make different reports.
|
|
|
|
|
Anonymous wrote:
How can I access a report at runtime
I simply #include <crpe.h> (Crystal Reports Print Engine API) for this.
Anonymous wrote:
can I do filtering at runtime
Yes you can. Just go through the help files included with Crystal Reports. You'll find lots of information on how to use it. Giving all that API information here is not a good idea.
Anonymous wrote:
do I have to make different reports
Not at all.
BTW, what version are we talking about here?
Gurmeet S. Kochar If you believe in God, it's because of the Devil
My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|
|
hi all
im creating a console project in VC++.
i dont want the console window to be shown.
please help me out in this.
i dont want to use Win32 App Project
thanx a lot in advance.
regards
|
|
|
|
|
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
place this at the top of your 'main' source file.
Er zit een korstje op mijn aars.
|
|
|
|
|
I wrote a Service prog and create a window in this service to receive a remote Service(WM_user+2330) message.but everything is fine except the window cann't receive message.
anyway,my servicetype is SERVICE_INTERACTIVE_PROCESS,why?
and i read the topic 308403 in msdn,here is a part of it :
"When you are designing the client and service applications, a final consideration is the sharing of named kernel objects (for example, events, mutexes, semaphores, file mapping objects, and other objects). By default, a kernel object is accessible only in the session where the object was created. This is named the local session namespace. If the client application and the service application must both access the same kernel object, you must create the object in the global namespace. To create an object in the global namespace, prefix the object name with "Global\". Global objects are accessible across Terminal Services sessions. "
what's meaning of this?what should i do to follow this?
Appreciate any help!!
|
|
|
|
|
All the kernal objects you creating is in local session namespace, eventhough the object will be there, you can't access them from any other context, instead of that if you create those kernal objects in global namespace, you can access frm different contexts.
I want to change ..Can u help me?
|
|
|
|
|
Hello,
I am creating a simple application that gets two long 's from a server when one long is sent to it. I can receive the first long, but when I try to get the second it times out. I get the first using recv() and assumed I could get the second by using another recv() right after the first, but I'm guessing this isn't how it's done, though I can't seem to find any simple tutorials that explain how to do this.
Any help would be appreciated,
- Steve L.
|
|
|
|
|
I think you neet to show your source code;
are you using blocking or non-blocking socket?
I'm novice too.
I want to help you as much as I can because I am also interested in socket.
aasdf
|
|
|
|