|
Use Depends.exe that comes with visual studio to check wheather your module is able to get all the dlls that it depends on. i.e ? against a certain dll means that dll is not accessible and hence the registeration is failing.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
I may be stating the obvious, but did you try regsvr32 "C:\YourFullyQualified\PathToOcx\yourocx.ocx" ?
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
Hi All,
Thanks for your answers.regsvr32 was not able to find one of the dependent modules.I had to copy both to a specific folder and register using absolute path of my ocx file
Thanks once again
Raghu
|
|
|
|
|
Dear all,
In the main application I use CDatabase to connect to SQlServer.After this, I pass the pointer to a variable in a dll using a function.
When I try to use ExecuteSQl or I try to open a CRecordset, the program fail with access violation in release version. If I use the debug version of the main program and the dll everything is fine.
Can you help me please with a solution to this issue?
Thank you very much.
|
|
|
|
|
Are you checking the pointer against NULL before dereferencing it?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Yes, the pointer is null in release version....
I don't have any ideea why...
|
|
|
|
|
Sorry, the pointer is not NULL...I have tested a diffrent pointer there.
The IsOpen() member of CDatabase work OK.The ExecuteSQL does not work I get an can not read at specified adress...
|
|
|
|
|
In the main program I use CCriticalSection and I submit the pointer to the dll. If I try to ust m_db->ExecuteSQL("SELECT * FROM TABLE1") in the dll I got the message "Connection in use".Why?
|
|
|
|
|
Hi
What service pack does msoutl85.h msoutl9.h and msoutl.h and their libs come in please?
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
I have a problem: I have a single document based MFC application for viewing images. At first I used CScrollView as base class, which worked well with formats supported by IPicture and tiffs. But now I would like to see also PDF -files, which seems to be possible with CHtmlView, it simply opens an Acrobat reader and attaches it into the form with navigate2 -function. But if I use navigate2 -function for bitmaps and tiffs, they don't seem to be attached to the form, but they'll be opened in a window of their own. And if I use the Render function of IPicture to draw images onto the form, they just flash on the screen and then disappear. It seems that the OnDraw() -function of CHtmlView won't be called automatically. Could anybody help me with this? Thank you.
|
|
|
|
|
As i understand it, CHtmlView hosts whatever OLE ("Active") documents necessary to display what is navigated to. So, if a particular machine is not configured with appropriate viewers for a given file type, it will open externally. Think of it as having IE embedded in your app - there's surprisingly little difference.
As for drawing over it - n'uhuh. Don't be trying to do that. First, it won't work. Second, even if it did, it would be quite wasteful. If you are going to be drawing the view yourself, then you don't have any use for CHtmlView anyway - CScrollView will work just fine. There's no reason you can't use whichever view is most appropriate for a given file at runtime.
Zno one puts flowers on a flower's grave
|
|
|
|
|
i need to know if conversion for atof is available in unicode
atoi is _ttoi
atol is _ttol
atof is ?
|
|
|
|
|
hi,
CString strCurrent;
strCurrent = _T("25.5");
//atof(strCurrent);
double dValue = 0;
_stscanf(strCurrent, TOFLOAT, &dValue);
good luck...
dan o
|
|
|
|
|
you can use strtod() instead of atof() . It's TCHAR macro is _tcstod()
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
thanks guys. Appreciate your help
|
|
|
|
|
_tstof
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
i am new to VC.i want complete information with all possible codes so that i can use com port for serial programming.please also tell me how i check that data is written and read from com port when no device is attached to it.
tahir
|
|
|
|
|
it is very easy if you want to use MSCOMM.For test, you can use two com port on your PC, one for sending and the other for receiving.(And you should connect the two com port before you test.)
Thanks
Benben
|
|
|
|
|
You can use CreateFile to open the com port and write to it as you would write to a file
Here is a Link to a wonderfull sample on serial communication with sample code
Hope it helps
Mttty Sample[^]
Data arrival can be handled as an event , so that you know whenever data arrives on com port
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
you simply use
CreateFile (.....) and WriteFile(....)
(one of the parameters will be your COM port)
read the MSDN for the correct parameters....
hope this helps ya
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi:
In my programme,I use some classes in a dll.When I try to compile it, VC give out such errors:
error C2487: 'classCWinAppEx' : member of dll interface class may not be declared with dll interface
error C2487: 'classCMyMenu' : member of dll interface class may not be declared with dll interface
(CWinAppEx and CMyMenu are declare and implemented in the dll)
and all these errors are point to the line "DECLARE_DYNAMIC( CWinAppEx )" or "DECLARE_DYNAMIC( CMyMenu )". I look up this error in MSDN, but didn't find the solution.Could anyone give me some idea?
Thanks
Benben
|
|
|
|
|
try to use __declspec(dllexport) while declare class
Exa:
#define EXT_CLASS __declspec(dllexport)
class EXT_CLASS ClassA : public X
{
...
};
|
|
|
|
|
Thanks.I have used this macro in the dll. And thses errors only occour when I try to compile one certain file(when I compile the other files, VC doesn't give out these errors).
Thanks
Benben
|
|
|
|
|
and I find that these errors only occur when the cpp files in EXE project have such line:
#undef AFX_DATA
#define AFX_DATA AFX_DATA_EXPORT
Maybe it conflict with the static functions or something else in the dll.How to resolve this problem? Could anyone give some idea?
Thanks
Benben
|
|
|
|
|
hey ppl i've been getting this wierd error when i try to add an event to the the activeX control as soon as i hit the add event button it says "Error adding a(n) event to the associated class" anybody know how to correct this?
thanks
|
|
|
|