|
hi there,
can anyone help me out..please..
I have a DLL which i can make package..ex. setup.exe. but i don't know how to register the DLL once i have created the package. it just installs the dll and does nothing. I want DLL to be fully functional when user runs the setup.
plzzzzzzzz help me out...
Himanshu
|
|
|
|
|
run after the copy of the dll
regsvr32 /s "dllnameandpath.dll"
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
i know that ow to register a dll. i want this feature automatic. ok letme explain this again.
I have a dll suppose my.dll which performs a specific function. I want this DLL as a package so that i can distribute it to different clients.
I can make the package but the problem is that i don't want them to run regsvr32 to register the dll. I want this during the setup time.
i hope now my problem is clear..
awaiting replies..any ideas are appreciated.
thanks in advance..
cheers.
Himanshu
|
|
|
|
|
You have several options
1. Microsoft MSI
a. Use VC7 to create setup
b. Use InstallShield to create MSI installation
c. use Wize to create MSI installation
2. Create CAB file
a. Use VC7 to create setup
b. Use InstallShield to create CAB File(I am not sure new IS supports it)
c. use Wize to create CAB installation
3. Use WinZip self extracting capabilities
4. create .bat file
The keywords to search on MSDN : MSI, CAB, install
The keywords to search on Internet : Installshield, Wize, WinZip
|
|
|
|
|
Alex gave you great alternatives, but it boils down to this: your setup program should give you the option to automatically register COM DLLs once they're installed. If it's your own home-grown setup program, then can either execute regsvr32 or load the DLL and then call its DllRegisterServer procedure.
Regards,
Alvaro
All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
|
|
|
|
|
hy, i have read a lot about this topic, but didnt found good answers. can anybody explain, how i can code the following VB-code in VC++ ?
Sub DocumentsExample()
MsgBox(DTE.Documents.Count)
End Sub
How can i get this DTE object? the compiler doesent recognises it.
I would like to make an addin for VC++.NET in which i can manipulate the code. (textmanipulations)
can anybody tell me, how i can do this? i dont know how to do things which i coud do in VB with
activedocument.selection , etc..
thanx for any input!!!
|
|
|
|
|
can't understand what ur looking for..but what i can make out is you want to messgae something on the screen.. for that u just have to write
MessageBox(CString);
or MessageBox("string");
so you need to convert whatever you want to display into string first then you can display anything.
hope you can slove it now..
cheers..
Himanshu
|
|
|
|
|
hy, thanx for the answer.
unfotunately, its not what im looking for.
1. MessageBox("string"); gives a compiler error,
only : MessageBox(NULL, _T("Hello From C++"), _T(""), MB_OK) is ok.
2. i wonder how to use the DTE object. in the MSDN library the example code is all in VB!
3. remember, i try to program an add-in !
|
|
|
|
|
It would help if we knew what this DTE object is. More importantly, search for the type-library. Once you find it, you can use the Class Wizard/Automation tab to add a wrapper class for it which you can then use in your code.
Regards,
Alvaro
All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
|
|
|
|
|
Hello,
1. I need to monitor that the user has entered values that are in range.
2. There is only one editControl that is used in order to enter values for 4 different things.
3. The DDV that I've placed is equal thatn the normal one but I've changed the maximinum allowed value to a variable in order to make it more flexible and capable to adapt to each maximum value.
This is what I've done:
DDX_Text(pDX, IDC_ED_POSICIO_DESTI, m_veddPosicioDesti);
DDV_MinMaxDouble(pDX, m_veddPosicioDesti, 0., this->m_EixSeleccionat.m_MovimentEixDirecte.m_dPosicioMaximaPermesa);
but the problem is that when I enter the Class wizard (Ctrl+W) I receive this message:
Parsing error: Expected ")".<br />
Input Line: "DDV_MinMaxDouble(pDX, m_veddPosicioDesti, 0., this->m_EixSeleccionat.m_MovimentEixDirecte.m_dPosicioMaximaPermesa);"
What can I do in order to avoid that message?
Thank you in advance.
|
|
|
|
|
your getting theproblem because you place the DDX_... command within the //AFX_DATA comment blocks. These are the lines that class-wizard will parse during the load phase. If you move the line outside of the comment block, then class-wizard will be happy.
|
|
|
|
|
|
hi there
does anyone know how can i log the activity of the file system?
i need to know when a file opens and store the name in a database
thank in advance for your help
|
|
|
|
|
see links..
http://www.codeproject.com/file/
i hope you see what you want there is lots of stuff like the one you are looking for. I think there is an article about how to write log files?
hope it does the work..
cheers..
Himanshu
|
|
|
|
|
|
thanks Dominik
i found this application and I look at it before posting the request
the problem with that ona is that i receive a lot of events on file system wich is not needed
where can i find some explanation about 'request' column from the GUI ListView?
i only need some events of create file, delete file, modify file not such like: FSCTL_IS_VOLUME_MOUNTED
thanks in advance for your help
|
|
|
|
|
MSDN key words : "Change notification", FindFirstChangeNotification, FindNextChangeNotification
MSDN article : "Monitoring Changes in a Directory or Directory Tree"
|
|
|
|
|
Can anyone explain me somethings about the COMMTIMEOUTS struct of the SetCommTimeouts API function?
When I set the ReadIntervalTimeout member to MAXDWORD and the ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant to 0 the ReadFile operation doesn't wait. Is that right?
And what's with the Write... members? When I write 0 to this members, the timeouts will be ignored and the WriteFile function doesn't wait. Is that also right?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Yes, that's right.
Quoted from MSDN:
"A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the characters that have already been received, even if no characters have been received."
"A value of zero for both the WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant members indicates that total time-outs are not used for write operations."
Maybe you should read a little bit, eh?
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
I am doing sometimes a little bit of serial communications. You have to read a BIG bit and test, test, test ... til u drop
Try this @ home. (B&B)
|
|
|
|
|
I have been looking for bar, line, and pie chart/graph in c++ that I can add to my project. I do not mind paying a reasonable fee, but everything I have seen is for .Net. I need c++ that can be used in my projects. Any leads?
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
|
Thank you for your efforts, unfortunately I have seen all of those with no luck. I am now searching the internet for commercial graphs. Thank you.
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
|
I have the following sample code in a DLL:
#define DllExport __declspec( dllexport )
#include <vector>
class DllExport Archive
{
protected:
std::vector<void*> m_vPointerStored;
};
and get the following warning:
d:\libs\saiggeneric\test.h(11) : warning C4251: 'm_vPointerStored' : class 'std::vector<void *,class std::allocator<void *> >' needs to have dll-interface to be used by clients of class 'Archive'
It only seems to be a problem with STL members.
My understanding is that using __declspec( dllexport ) for a class makes the class and everything in it exportable. I'm trying to build a straight C++ DLL, not an MFC Extension DLL. I don't know if this has anything to do with the problem. Help!!!!
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|