|
That's the first article i looked at. I get the same results.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
What OS? I just tried the demo and I got the Ctrl + Alt + X message.
"When you know you're going to eat crow, it's best to eat it while it's still warm." - Reader's Digest
|
|
|
|
|
On Win98, if you create both a hook and a hotkey for a given key combination then the hotkey wins in front of the hook event.
So, check your hot keys
Maybe this helps.
SkyWalker
-- modified at 15:14 Saturday 12th November, 2005
|
|
|
|
|
Deleted the accelerators before I tried it.
Maybe I missed something, I'll try it again...
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
delete and then restart
SkyWalker
|
|
|
|
|
Just a guess, but is your system set to a language other than English? Some languages such as German have another shift key called AltGr, and if the keyboard doesn't have an AltGr key, Windows lets you use Ctrl+Alt instead to get in the AltGr shift state.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ
Shots do not hurt other players... yet
|
|
|
|
|
Has any1 developed any kind of software capturing data from TV Tuner through AVICap window class. I need some help on it. I shall be very thankful to him/her.
|
|
|
|
|
Sir Khan...
Checkout the windows 98 and or XP Driver Development Kits.... search msdn.microsoft.com for Win98 DDK or WinXP DDK.... In the sample code you will find a project that is pretty much exactlly what your looking for... Infact, I once used this code to create a sort of TiVo ripoff a while back ago....
I know what your trying to do isn't really related to drivers, but there is an example there... The whole DDK thing is a pretty steep learning curve... well at least for me
-peace out yo
-dB0
|
|
|
|
|
I remember that a sample is called avicap. You may search it in MSDN.
|
|
|
|
|
I HAVE downloaded a important project file which has few
*.c and *.h files and other file as *.vcp(VCPROJ) do anyone
know what type of file is this and is it related to any MVStudio.
thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Visual C++ writes and uses a number of files during the build process.
.VCP is the Workspace (project) information file, which is the Visual C++ equivalent of the 16-bit version .WSP file.
If you build your program outside the IDE, you may use a makefile to invoke the command-line tools. If you build your program within the IDE, the embedded Visual C++ project system uses the project (.vcp) files to store thr make information.
SkyWalker
-- modified at 17:48 Saturday 12th November, 2005
|
|
|
|
|
.vcproj is the extension used for Visual Studio 2002 and 2003 project files.
Software Zen: delete this;
|
|
|
|
|
Thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I HAVE downloaded a important project file which has few
*.c and *.h files and other file as *.vcp(VCPROJ) do anyone
know what type of file is this and is it related to any MVStudio.
thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi everybody ::- ). I got an issue with some ATL thingy I'm working on. I made an ATL DLL which I use in Visual Basic 6. To set or get a string property I use BSTR, since Visual Basic uses this type. A value from VB6 successfully reaches VC++ 6. But not the other way around. Here's the VC++ code.
BSTR test;
STDMETHODIMP_(HRESULT) CASDINIFile::get_ASDOperator(BSTR *pVal)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
<br />
pVal = &test;<br />
<br />
return NULL;<br />
}<br />
<br />
STDMETHODIMP_(HRESULT) CASDINIFile::put_ASDOperator(BSTR newVal)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
<br />
test = newVal;<br />
<br />
return NULL;<br />
}
The VB code isn't of relevance. I say myatlobj.ASDOperator = "bla bla" and then try to query the value (and I get nothing). Of course, the problem lies in this line probably:
pVal = &test;
So the function REQUIRES me to give pVal a BSTR *. So I give the address of &test but obviously, it ain't working since probably VB 6 wants a simple BSTR. If I try to change the BSTR * to BSTR I this error from VC++:
error MIDL2121 : [out] only parameter must not derive from a top-level [unique] or [ptr] pointer/array : [ Type 'wireBSTR' ( Parameter 'pVal' ) ]
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
In get_ASDOperator you are passed a pointer to a BSTR . If you assign a value to that pointer, you've only affected the local copy of the pointer, not the BSTR that the original argument pointed to. Also, you've said that this is an [out] parameter, which means that you need to set the value that is pointed to.
What you want to do is something like this:
*pVal = ::SysAllocString(L"Return this string");
CString return_value;
*pVal = return_value.AllocSysString();
Software Zen: delete this;
|
|
|
|
|
Hi Gary, thanks for answering. I'm not an expert in VC++ but wasn't it supposed to be SysAllocString? Also, isn't this a memory leak? Where do we Free that string? Anyway, for all of you that stumble or will stumble upon this problem, the answer is:
<br />
STDMETHODIMP CASDINIFile::get_Operator(BSTR *pVal)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState()) <br />
CComBSTR sToReturn;<br />
sToReturn.Attach(<YourBSTRVariableHERE>);<br />
sToReturn.CopyTo(pVal);<br />
sToReturn.Detach();<br />
return S_OK;<br />
}
Or at least this is the method I used ::- D.
And probably something like this will also work: (though I didn't test it!)
<br />
STDMETHODIMP CASDINIFile::get_Operator(BSTR *pVal)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState()) <br />
BSTR *sToReturn = (BSTR *)pVal;<br />
*sToReturn = <YourBSTRVariableHERE>;<br />
return S_OK;<br />
}
Have fun ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Axonn Echysttas wrote: wasn't it supposed to be SysAllocString
The CString member that returns a BSTR is called AllocSysString , for some strange reason.
Axonn Echysttas wrote: isn't this a memory leak
The rule with BSTR 's is the producer allocates it, and the consumer SysFreeString 's it. In your case, it will be the caller's job to free the string.
Software Zen: delete this;
|
|
|
|
|
You're overlooking the fact that the caller is VB, and VB is too retarded to free it *laugh* ::- ). Anyway, the job's done, hooray. In the meantime I ran in another "doodle". Check the above message if you wish to help ::- ) - actually it's too late to run from me since you're already in my "Thanks to" list ::- >.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
It wouldn't surprise me to find that VB frees the string automatically when the corresponding value goes out of scope. VB is where BSTR 's got their start anyway; BSTR stands for B ASIC STR ing.
Software Zen: delete this;
|
|
|
|
|
Basic String. Hehe. I didn't know that. Hm anyway, it doesn't free it. I already stumbled upon it. My first method to pass the string to VB was to create a global CComBSTR object. And guess what?? After the VB function that contained the instance of the ATL object finished execution, boom, crash (in VC++...). So VC++ was alerting me of the memory leak. So then I placed a .Detach() command to the CComBSTR back in the destructor of the ATL and no more errors ::- D. SO no, VB does not do it... ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
i want to write in my script and in text feild too by using unicode (in georgian).
what should i do?
i wrote it in script after compiling there were two errors thay said that visual c++ doesn't support unicode
Programistebo saqartvelosi sheertdit
|
|
|
|
|
Define _UNICODE in the header file.
Please search for more infomation of using unicode programming in MSDN.
|
|
|
|
|
thanks!
could you please tell me where can i find info about this or i want to find manual for Visual C++
Programistebo saqartvelosi sheertdit
|
|
|
|
|
Try using the MSDN[^] web site first.
Software Zen: delete this;
|
|
|
|