|
Hi,
I want to implement Whois lookup in ISAPI DLL Extension. I used CSocket class for that. When I compile it's not showing any error. But, It's not giving any output in the browser. Let me know the reason, why its not showing the output.
Thanks in advance,
K.V.Raja
|
|
|
|
|
I think some code would be helpful here.
Cheers
|
|
|
|
|
we have developed a multithreaded win32 application using vc 6.0.Try catch exceptions are handled.But still when the exceptions are thrown, the threads get frozen except the primary thread.
Can anyone give suggestions?
|
|
|
|
|
Don't use exception handling, re-code in a defencive manor, checking things rather than waiting for things to explode.
|
|
|
|
|
> Don't use exception handling
This may be impossible - if he's using some library reporting error conditions using exceptions.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi all, i use the same code in my CView derived class to draw icons to both the screen and the printer. I use CDC::DrawIcon to do the drawing. The icons show up properly on the screen, and on print previews. They just don't actually print. I've also tried using ::DrawIconEx, but to no avail.
Any suggestions? Thanks in advance!
|
|
|
|
|
There are tow hosts in a local network. One has database source files ( mdb files ) and the other accesses them by using ODBC DSN. sometimes it happens that a database source file breaks down and
message dialog says to repair the databse file immediately.
Why does the database file break down ????
Somebody help me.
Thanks in advance.
|
|
|
|
|
hi,
I think you need to synchronize your access.Give more detail so that I may help you.
joey_tribbiani
|
|
|
|
|
thank you for your concern.
Let's suppose that two customers visited my shop.
They look around my shop and purchase goods they need.
each of them goes for accounts , one to left and the other to right.
each of the two accounters processes his transaction ; updates mileage of the customer,
updates the left of each item, records details of sales, and so on.
in this situation, one host, client , could access the same database file to which server accesses at the same time.
that's all. please, help me.
i'm not apt at english.
|
|
|
|
|
You need to use transactions to ensure the integrity of the database. If you are using MFC database classes, see CDatabase::BeginTrans(), CDatabase::CommitTrans() and CDatabase::Rollback(). Also, check that the relationships between the tables are correctly (and completely) defined in Access.
|
|
|
|
|
I want to find the sourcecode of a ActiveX control from VC and MFC.
and the control with print interface.
Thanks.
Where can I get it?
|
|
|
|
|
How to set options in-order to create the application with minimum size ?
|
|
|
|
|
Go to
"Project | Options" in the VC++ menu
Go to the "C/C++" tab
Under "Optimizations", select "Minimize Size"
-- Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Hallo everyone,
I am a student and have to make a little program in Visual C++ that launches an “event” on a certain date and time.
A good example are the programs who save birthdays and launches them on a predefined date and hour or the programs who launches a certain program on a certain date and time. A sort of schedular.
Is there someone who has the source code for such a program, so I have a little example.
I would be very gratefull !
Tom Crauwels
You can reach me at :
Danny.crauwels@pandora.be
|
|
|
|
|
Use GetSystemTime to know the time, use OnTimer to check at a regular interval and use ShellExecute to run your other program.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
I have searched and searched, but I cannot find anything about implimenting jscript or vbscript into C++.
|
|
|
|
|
Did not exactly understand the question.
Do you just want to call VBScript or JScript code from external files to be run for VC++ code or
Do you want to pass parameters and get return values?
-- Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Why not use a server-side scriptlet? This will enable your JavaScript or
VBScript to the accessed exactly like a COM object
Search for "Server Scriptlets" in MSDN.
There is an article by Dino Esposito that deals with it.
-- Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Hi all,
The service I'm writing (i.e., a console app) needs to load resources from its exe file- is this possible? How do I get the HINSTANCE of the module?
Cheers,
NickB
|
|
|
|
|
Use the line:
HINSTANCE hInstance = ::GetModuleHandle(NULL);
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Use the line:
HINSTANCE hInstance = ::GetModuleHandle(NULL);
modified 29-Aug-18 21:01pm.
|
|
|
|
|
thanks,
looks like I should have found that one
nb
|
|
|
|
|
I need to have a loop of code that will be executed for between 1/20 of a second and 1/4 of a second (I'm not sure of the exact time yet)....thus I need to be able to time miliseconds....any ideas?
|
|
|
|
|
Use the GetLocalTime before and after the loop
The difference in the times will give you the difference in milliseconds.
Another way that I use to increase the accuracy is to run the same exact loop 1000 times in a loop. So the time taken can be calculated to the accuracy of microseconds.
I do not know, whether this is the answer that you are looking for, but I hope this helps you.
-- Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
timeGetTime returns a time in milliseconds.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|