|
|
I would like to know how to force the windows installer(deployment project *.vdproj) to overwrite the database files at the time of installing if it is already exist in the user PC. Is there any option for overwrite / no overwrite.
Thanks & Regards,
Suman
-- modified at 1:16 Wednesday 29th November, 2006
|
|
|
|
|
inno setup is very good and can do anything and easy-to-use.
|
|
|
|
|
In my project, i import a dynamically link library developed by other persons. Some functions in the library are used in my project. When some requirements are satisfied, the functions bring up modal dialog boxes and causes my program to pause. I would like to get rid of those modal dialog boxes so that my program can run without any interruptions. Unfortunately, the developers are not available. This means that I have no chance to know what the triggering requirements are. I wonder if it makes sense for me to expect to inhibit those model dialog boxes in some way.
Thanks in advance
|
|
|
|
|
You could use IAT patching if the DLL links to user32 statically. I think this will not work on Win9x however I’m not 100% sure on this.
Steve
|
|
|
|
|
Steve, Thank you for your reply.
Could you please provide more info on IAT patching . I never hear about it before.What is it. How to use it.
|
|
|
|
|
Doing a search of "IAT" at the codeproject will return many results. You could also try Googling for it. "IAT patching" is another phrase you could try searching for. It's a complicated topic if you've never encountered it before.
Steve
|
|
|
|
|
Hi
What is the difference between a process's ID and Handle?
I see that ID is just a number assigned to the process by the system but handle is like pointer of Process.Thay said program database.
But why do we need both of them?
Why is not enough only ID or Handle?
What are the differences?
Arent both of them unique?
Thanks.
|
|
|
|
|
The process ID identifies the process. The process handle is used to perform operations on the process object.
The process id is valid until the process terminates. The process handle is not (you can release
a process handle with CloseHandle() and later obtain process handles with OpenProcess() using the process ID).
The process id will be unique in the system. The process handle is not necessarily unique
(although the object it represents is).
The details of what HANDLEs represent are (thankfully) hidden from us. Otherwise we'd need
different pointer types for all the different Win32 API sets.
Tip: A common handle leak occurs when using CreateProcess() and not releasing the returned
process and thread handles if they're not needed. I see this one often, and was guilty of it
myself for a long time
|
|
|
|
|
Thanks Mark.
I was going to reply to this one, My reply was longer, but your reply should be caligraphed and framed, and put on every system programmers wall. It is Apt and To The point.
LateNightsInNewry
|
|
|
|
|
Thank you Mark Salsbery
Very good explanation.
In what situation are there many handles for a process and windows mange these handles?
Where does windows hold this id and handles?
I mean is there "one" handle table and "one" id table for one sesion?
|
|
|
|
|
sawerr wrote: In what situation are there many handles for a process and windows mange these handles?
Hmmm... in the case of a process handle...say you have another process and you want to terminate
it (with extreme prejudice ). You find the process through some method, obtain a handle to it,
and use that handle in a call to TerminateProcess(). The process itself may have handle(s)
representing its own process as well. Lame example, yes. In the case of process handles maybe
there's not a good example of needing more than one process handle. The point is there CAN be
so to assume handles are unique is not correct.
sawerr wrote: Where does windows hold this id and handles?
I mean is there "one" handle table and "one" id table for one sesion?
Doesn't matter (although it can be interesting, of course). By using handles, the system is free
to implement this any way it needs to, without us having to change our code if the underlying
implementation changes. A handle could be a pointer, an index into an array, a numeric ID,
whatever the implementation uses to identify the object the handle represents. Windows may or
may not have its own handles to processes, I have no idea...the implementation is hidden from
me by handles.
|
|
|
|
|
|
I'm working on a C++ MFC project that has a connection with a MSSQL Server and also makes HTTP requests.
What I would like to do is set up the program so all of the MSSQL traffic takes place on the local network (hardwired ethernet interface) but the HTTP communication takes place on a dialup network (modem interface). Basically, I want all of the HTTP traffic go through the external dialup network, but the database traffic needs to stay inside my LAN.
I'm using the standard MFC CRecordset classes to access the MSSQL Server (using TCP/IP via ODBC) and for my HTTP functions, I am using MFC CInternetSession and CHttpFile classes.
Is there a way I can bind these classes to a specific interface? I'm sure I can enumerate the network interfaces easily enough and identify them, but I'm not sure how to route TCP/IP traffic to a specific interface depending on the task.
Any help is greatly appreciated.
|
|
|
|
|
|
Thanks and rats.
I suppose I'll have to change the processing logic so I'm not trying to run DB and HTTP threads at the same time and reconnect dialup between DB calls.
|
|
|
|
|
I'm pretty sure in the case of TCP/IP, the microsoft stack implementation, in a multihomed
situation, will choose the adapter with the shortest path to the destination when making a
connection. Maybe it will just magically work(?). If there's not a gateway to the internet on
the LAN then wouldn't the HTTP connection choose the dialup adapter?
Mark
|
|
|
|
|
Hi,
Is it possible to colored days with DayState in a MonthCalendar. Now they are only bold.
I see no chance in WinApi?
MfG schirrmie
|
|
|
|
|
hi all,
the problem is
there are many icons in the system tray. i want to hide or delete one of the icons all ready present, how to get what icons are there visible or under hide inactive icon arrow mark,
do you have any idea how to get the list of icons from the system tray.
P.S. i dont want my icons to be added or deleted in the tray, i want icons of other application
Thanks
Swarup
|
|
|
|
|
See here for "enumeration" ideas.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks a lot for the idea n help
|
|
|
|
|
hi guys,
i got the idea, if anyone needs help let me know i am willing to help my best.
|
|
|
|
|
There is documentation on the internet talking about a version 1.1 of GDI+ which implemets the Bitmap::ApplyEffect method.
Has this been released? There seem to be a lot of confused people asking where it can be found.
|
|
|
|
|
zaccheus wrote: Has this been released?
Have you checked here?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes, of course I checked.
Here is a link to the latest download I can find: Platform SDK Redistributable: GDI+
The DLL it contains is dated 04 May 2004 and has version 5.1.3102.1360 - this is not v1.1 as far as I can tell.
|
|
|
|