|
Hi Steen,
I dont want to share data between two processes using dll. All I want to do is that, in dll I want to put some global variables and in other application I want to access these global variables. Is it possible as replied by the other guy.
Regards
CyberFriend
|
|
|
|
|
|
What do you mean by "other application"? If it's another program, then you want to share data between processes. If it's another module within your program you can do as A_Laxman wrote.
Cheers
Steen.
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
A_Laxman wrote: define the variable in .cpp file of DLL as
extern _cdecl __declspec(dllexport) int humm=0;
Why extern in definition...?
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
maybe it is some helpful to you
Here[^]
whitesky
|
|
|
|
|
Have you tried exporting functions to Set and Get the variable ?
|
|
|
|
|
Hi,
I want to display information stored in my database, that is only available for a user. I can use GetCurrentUser() to get the name of the currently logged in user, but I want to read other users to read their data without completey logging off and on again.
I have a dialogbox to ask the user for a username and the corresponding password.
Now I want to check, if this is the correct password for the user, asking my domain controller in my ADS.
Any hints?
Juergen
|
|
|
|
|
e-DJ wrote:
I have a dialogbox to ask the user for a username and the corresponding password.
Now I want to check, if this is the correct password for the user, asking my domain controller in my ADS.
see the LogonUser security API
The LogonUser function attempts to log a user on to the local computer, that is, to the computer from which LogonUser was called.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
e-DJ wrote: Now I want to check, if this is the correct password for the user, asking my domain controller in my ADS.
Can you use LogonUser() for this?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Nice to see you here:
Check for LogonUser()
Regards.
|
|
|
|
|
Great
exactly, what I was looking for.
Thanks everybody for this great support
Juergen
|
|
|
|
|
maybe it is some helpful to you Here [^]
whitesky
|
|
|
|
|
I use DirectX Sample Browser with WebCam device, but I can't link "strmbasd.lib", help me!
aloha
|
|
|
|
|
aloha1812 wrote: but I can't link "strmbasd.lib"
What is the problem ?
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Hi,
To link 'Strmiids.lib' Library File ...... Build the base-class of 'DirectShow' & then add path-name of library files of DirectX in your program.
Best Regards,
Aniket
|
|
|
|
|
Hi
how can I make a copy of file on another location while it is open
would there be a problem to copy it using my app to another location , when it is open too.
thanks
Regards.
|
|
|
|
|
zahid_ash wrote: how can I make a copy of file on another location while it is open
simply read the whole file and create the new file and write the data into it.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
OK,
copying a file while it is open means A "AA.doc" file is open in MS Word . and at the same time my application wants to copy it on another location.
would the simple read and write to other location works. i thought that may be the document is locked.
Regards.
|
|
|
|
|
zahid_ash wrote: would the simple read and write to other location works. i thought that may be the document is locked.
I have tried the demo, but the MS Word not allows this operation .
i think it opens the file in Exclusive read/write mode so that no one can access the file.
may have to set the some permissions
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
You can open the file in the read/write or the append mode.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think you can use ::SHFileOperation to copy openned files.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
would there be a difference between simple read and write . and using ::SHFileOperation()
Regards.
|
|
|
|
|
Notice that you said "my app" but you said nothing about Word. It would help others to help you to mention details such as the fact that the data is a Word file. You would get better answers that way.
I would use the Word objects to copy the data. That is, the objects used by VBA. I am not sure that will work but I would be very, very surprised if it is not possible.
|
|
|
|
|
Hi !!!
If you use the functions of the WIN32API for the copying the files, ... you don't have to close the opened file, it does it self.
By !!!
-:KNOX:-
|
|
|
|
|
Hi Guys,
This is a question asked by one of my junior.
Though i could able 2 answer him,by telling him to ensure different memory location for each instance of the class,the size is set as 1.
But I am(ofcourse he tooo) not convinced with my answer.
Can anyone of u give me a good explanation for this Question??
Appu..
"If you judge people, you have no time to love them."
|
|
|
|