|
|
Does anybody have any info about implementation of CD/DVD emulation ?
|
|
|
|
|
iam working in the same project
so please if you got any usefull info or links
please send me
thank you
|
|
|
|
|
I need help regarding writing a dll
i need to call that dll in a vb 6.0 program .
what step i need to take in order to write that dll
i need to export class from that dll. i didnt use any support of MFC
Work Hard and Test your Luck
|
|
|
|
|
You could start by looking at MSDN. There is a lot of good tutorial style docs on what you're trying to do.
Also, if you use VC6 (not tried in 7), create a Win32 DLL project, somewhere theres an option to have the project "export some symbols". This default project it sets up exports a class in it's sample code.
jon
Signature space for rent. Apply Within.
|
|
|
|
|
thanx for the help
by the way i have July edition will it help me . one more thing i am not using MFC support and i need to export a class in my dll so if u could refer5 me any book also or a link i will be very greatfull to u
Work Hard and Test your Luck
|
|
|
|
|
Like Jon Hulatt said, if you create a new Win32 DLL in the appWizard when you create a new project, one of the options for you to choose is to create a DLL that exports some symbols. If you do this then you will have a shell of a DLL to start with that exports a global variable, a function, and a class with member functions.
Good Luck.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
thanx kilowatt
i don got ur point of "If you do this then you will have a shell of a DLL to start with that exports a global variable, a function, and a class with member functions" if u kindly explain it to me once again" .
i have a project thats working i need to convert it to dll so what step i could take . MSDN was alos not clear
pls help me if u can thanx for ur answer
Work Hard and Test your Luck
|
|
|
|
|
Please, tell me , how i can protect with the password access to the CD Drive ?
|
|
|
|
|
In vc++,I want to load a image file from a mapped network disk.
I want to know whether there are any authorization problems in accessing to a mapped network disk?
I can load the file from my local disk,but that program got failed when loading from a mapped network disk.
Thx ahead.
|
|
|
|
|
Did you receive any kind of file access error code?
Make sure you are using a path in this form:
//ComputerName/RemotePath/FileName
Also, make sure you have the remote path shared and having the correct access permissions. If you are using XP, you will have to setup Security permissions as well.
Like it or not, I'm right.
|
|
|
|
|
I have used that way before,and I can access to that disk driver in the explore so I have correct access permission.
When I use my ATL COM server to load a jpg in the localdisk,it works well.But
when I want to load it from a network disk driver,no matter which way I choose,(//ComputerName/RemotePath/FileName or mapped disk label),I got nothing.
|
|
|
|
|
Hi,
Look at the code below
#define MAKEINTRESOURCE(i) (LPTSTR) ((DWORD) ((WORD) (i)))
If it's a type casting, I feel it's terrible.
My question is: Inside memory, what the variable i look like after this terrible type casting
Any information concerned is appreciated.
Thank you
Best regard.
I confess that I am a stubborn guy, but why not put things thoroughly, logically and systematically clean. One concrete prolem is worth a thousand unapplied abstractions.
|
|
|
|
|
The high word of 'i' will be cleared, since the WORD type cast will remove it.
The DWORD type adds a high word of zero's. The LPTSTR does just change the type of the DWORD to a character pointer, with no effects on the bits in memory.
|
|
|
|
|
Where's Christian?? He won't like that c-style cast one little bit
Signature space for rent. Apply Within.
|
|
|
|
|
If you dont try to modify the pointer returned from MAKEINTRESOURCE, things are okay.
Anyhow MSDN has this warning :-
"The return value from MAKEINTRESOURCE should be passed only to the Win32 resource-management functions"
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Yes, this is type casting.
Because the compiler verifies that all computations in your program use compatible datatypes, type casting becomes necessary when you have two data types in a calculation that are not compatible by default.
The MAKEINTRESOURCE macro is a very useful macro, that does serve a good purpose, and is not considered terrible. It allows you to refer to a resource in your module by either a NULL terminated string, or a resource ID.
This type of cast, where you place the target data type in ( ), is called a C-style cast. This is equivalent to the reinterpret_cast operator in C++. It tells the compiler to disregard the format of the data that you are type casting from, and think of it as another, possibly incompatible format.
So this type-cast operation does not change anything inside of memory, it just makes the compiler think of your type-cast variable as another format so that it will not complain that you are trying to form a calculation with two incompatible types.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
answer:
Pointer to a null-terminated string of 16-bit Unicode characters.
Aizik Yair
Software Engineer
|
|
|
|
|
Hi,
When I´m in Run mode, my ActiveX displays my IPicture object without problem, but, when I want to print or go to design mode ( using MS-WORD), then it only shows some part of the metafile..
My rendering code is:
CComQIPtr<IPicture> _Pict;
HRESULT OnDraw(ATL_DRAWINFO& di)
{
T* pT = static_cast<T*>(this);
RECT& rc = *(RECT*)di.prcBounds;
RECT r = rc;
long lPicWidth = 0;
long lPicHeight = 0;
BOOL bRunTime = FALSE;
Rectangle(di.hdcDraw, 0, 0, rc.right, rc.bottom);
if(_Pict) {
_Pict->get_Width(&lPicWidth);
_Pict->get_Height(&lPicHeight);
SIZE szPic;szPic.cx = lPicWidth;szPic.cy = lPicHeight;
SIZE szCanvas; szCanvas.cx = rc.right; szCanvas.cy = rc.bottom;
SIZE ScaledSize = ScaleCoordinates(szPic, szCanvas);
HRESULT hres = _Pict->Render(di.hdcDraw, 0, 0, ScaledSize.cx, ScaledSize.cy, 0, lPicHeight, lPicWidth, -(lPicHeight), &r);
}
return S_OK;
}
Is there anything wrong ? Or maybe trying to draw a metafile from IPicture to another metafile, doesn´t work ( shiiit !) ?
Thanks in advance, greetings
Braulio
|
|
|
|
|
Hi,
Sorry for the second post.. but this is due to the
reason that some may have misunderstood my problem.
I don't neccessarily require an API or something..
but i've heard that you can have a document FAXed
bt AT commands also.
Please if someone knows, put some light on it
Thanx
Sameer
|
|
|
|
|
It depends on the modem. What modem are you using?
Michael
|
|
|
|
|
Hi,
My MODEM is a Class 1 and 2 Compatible. So please
if you have some idea, let me know
Sameer
|
|
|
|
|
|
Does anybody have classes, that allows to read (or maybe update) dates into DBF files ?
thanks a lot !
|
|
|
|
|