|
Well, if you don't care about definitions, then you may enjoy immorality... If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I make up my definitions as I go along, I find keeping them confused is advantageous. And if someone didn't think it was immoral, it wouldn't be nearly as much fun. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
My old boss used to say:
If you can't impress with brilliance, dazzle with BS!
|
|
|
|
|
Vaclav_Sal wrote: I do not know how to do this.
if you're using VS03 or higher, you can do something like this:
go to the Build Events / Post Build Event screen. for the Command, enter copy $(TargetPath) outDir - where "outDir" is the target directory.
|
|
|
|
|
Thanks Chris.
Works as advertized in VC 6.0.
Added it to Post-link step and got this:
Generating Code...
Linking...
Creating browse info file...
Copy DLL post build step
1 file(s) copied.
OpenHR.exe - 0 error(s), 0 warning(s)
Thanks again, Chris you are "the man".
Vaclav
|
|
|
|
|
What about changing the directory where the linker outputs the DLL in the DLL's project settings? Or do you need to keep the original copy there for some reason? You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Tim,
I like your approach better. Change the source, rather then the result.
KISS attitude.
No , there is no reason to keep the original and make a copy.
Thanks
Vaclav
|
|
|
|
|
Just for completeness, you can add a folder where the system searches for DLLs using SetDllDirectory .
|
|
|
|
|
Good one.
I may have to write a short paper on this to repay for all your inputs.
You guys are soooo smart and helpful.
Thanks again.
Vaclav
|
|
|
|
|
I am a beginner in using c++ and I am assigned the following task:
Currently I am using a 3D positioning Device with its provided SDK. In order
for me to recieve the 3D coordinates I must provide a proper window handle.
I understand how to create a window handle but now my question is this, how
can I read data from within a handle such that I can translate this into data
that I can send to MATLAB?
|
|
|
|
|
You should read carefully the SDK documentation. If a window handle is requested then probably the window will receive notifications (in the form of Windows messages) from the library.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
ok my situation is:
i have a panel with 3 picture_box, but in general with 3 control
--------------------------------------|
| panel 1 |
| -------------------------- |
| | | | | |
| | img 1 | img 2 | img 3 | |
| | | | | |
| -------------------------- |
| |
|-------------------------------------|
over this panel i design a new semi-transparent form...what i want is that clicking on form1 in correspondance with the "img1" i can raise img1 click event....
i'm actually able to get the right control where i'm on, but i would like to be able to raise events.
I know it's possible by extending the "picture box" class or by using a "button" with performClick method but i'd like to know if there is something for the general control class?
thank in advance
|
|
|
|
|
If your control is derived from CWnd , You should be able to define handlers for OnLButtonDown , OnLButtonUp , ..Watched code never compiles.
|
|
|
|
|
Hello.
I have a component in VB (Yeah i know here is C/C++ forum) and this component uses JPEG files as input.
For example;
MyComponent.File="C:\myimage.jpg"
My problem is i want to protect this image from othere people.
The question is ? How ?
Can i write a DLL or any other file which responds as JPEG file to my software with an encryption mechanism.
For example;
OPENFILE
My.Component.File="mydll.dll"
This dll will send an encryption key to my software and if everything is ok it will reply as jpeg file.
Its not problem to protect print screen key or cameras. I just want to protect jpeg image.
|
|
|
|
|
Why don't you just encrypt the file content and then decrypt it inside your VB application?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Because components wants from me a jpeg file path.
|
|
|
|
|
maxMESA wrote: Because components wants from me a jpeg file path.
Please don't shout.
BTW does it mean you cannot modify such component?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
yeah ok. i dont know how to modify. is it possible ? i think it's an activex object. in other words i dont have source code.
|
|
|
|
|
maxMESA wrote: n other words i dont have source code.
OK.
I guess you may (never done):
Encrypt the file.
Then, in your application, decrypt the content and write it to a locked file, pass the path of the locked file to the component and the unlock it and eventually delete it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What CPallini said, only when you create the temporary file, use the Win32 CreateFile function and pass DELETE_ON_CLOSE to it. (And obtain the temporary directory using GetTempPath() and name using GetTempFileName().)
|
|
|
|
|
Hi All,
My product runs as a service. During upgrade we remove the old service and install the new product instance. Now I want to preserve the old user credentials and apply to new service. How should I do this?
~ Vikram S
|
|
|
|
|
Hi,
well this is not quite the right place to post this question, please move this topic to windows related questions.
I want to give you a fast tip:
1) when installing a new service if you want to avoid problem use "instsrv.exe" (google about it)
2) then after creting the service edit the corresponding registry editor HLM\SYSTEM\CurrentControlSet\Services\yourservicename\Parameters
|
|
|
|
|
hi,
i want to create a sample app with one button and change its text according to UI language.hw can i do that?
|
|
|
|
|
Use a resourse dll of string table for each language you want to use in your application.The Id for a particular string in all dlls should be the same. Load the appropriate DLL (according to the local language) at run time, and read strings using LoadString http://msdn.microsoft.com/en-us/library/ms647486(VS.85).aspx[^]
Another way is to store strings of each language in separate XML files in such a way that the node name of a particular string is same in all XML files. Load the appropriate XML file and parse nodes using MSXML to read strings.
|
|
|
|
|
Use either a STRINGTABLE or MESSAGETABLE resource, as described here[^]. You can include these in your app if they are of reasonable size, or put into a separate dll as described in the previous answer. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|