|
I am writing a code through which i want to disable the USB VBus power supply.I am able to disable the device and set the device current state to D3 mode but it is not cutting off VBus.Is this possible using windows-XP API? plz do reply.......
|
|
|
|
|
Hi,
I have to export a class and it's function from a dll(this dll is already exists) then i have to import that class in to my application???
So,I did as,
In that dll defined a macro as DLLExport:
#ifdef DllExport
#define DllExport __declspec( dllexport )
#endif
In the class declaration gave as,
class DllExport ATL_NO_VTABLE CShockwaveFlash:
What i have to do after this???
Thanks and Regards,
Siddharth
|
|
|
|
|
|
Thank you
Actually,Dll which I am using is an exising dll.So I exported and imported the class and changed the project settings according to the tutorials.
Now I included the header file in my sample application ,but it is not recognizing the file???
please help me...
Siddharth
|
|
|
|
|
Can you explain it better?
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
I am using an existing dll and I want to export class from it.And I created a sample application(mfc) to import that particular class...
So I used the steps above.But how I can check whether the class is exported or not ???
|
|
|
|
|
Hi,
i want to minimized my application when i clicked (two times) on task bar... do you know the message?
thanks
Giulio
|
|
|
|
|
|
thank you so much...
Raiz
|
|
|
|
|
ops... on msdn i don't find this message.. (WM_NCDBCLICK)
have you got an idea?
Raiz
|
|
|
|
|
|
|
If your window is the current foreground window, clicking its taskbar button automatically minimizes it. You don't have to do anything to get this feature.
|
|
|
|
|
easy way... but... i want to customize the standard windows application...
border=nothing..... (No dialog frame)...
do you understand?
thanks.....
Raiz
|
|
|
|
|
Hi,
Mine is a unicode Supported application.I have used the following function to create internet shortcut.
CreateShortcutToURL(LPCSTR pszURL, LPCSTR pszLinkFile)
{
HRESULT hRes;
IUniformResourceLocator *pURL = NULL;
// Create an IUniformResourceLocator object
hRes = CoCreateInstance (CLSID_InternetShortcut, NULL,
CLSCTX_INPROC_SERVER, IID_IUniformResourceLocator, (LPVOID*) &pURL);
if (SUCCEEDED(hRes))
{
IPersistFile *pPF = NULL;
hRes = pURL->SetURL(pszURL, 0);
if (SUCCEEDED(hRes))
{
// buffer for Unicode string
int nLen = MultiByteToWideChar(CP_ACP, 0,pszLinkFile, -1, NULL, NULL);
LPWSTR lpszW = new WCHAR[nLen];
// Ensure that the string consists of ANSI characters.
int k= MultiByteToWideChar (CP_THREAD_ACP, 0, pszLinkFile, -1, lpszW, MAX_PATH);
//USES_CONVERSION;
// LPCOLESTR p = T2COLE (pszLinkFile);
hRes = pURL->QueryInterface (IID_IPersistFile, (void **)&pPF);
if (SUCCEEDED(hRes))
{
// Save the shortcut via the IPersistFile::Save member function.
hRes = pPF->Save (lpszW, FALSE);
// Release the pointer to IPersistFile.
pPF->Release ();
}
}
// Release the pointer to IUniformResourceLocator
pURL->Release ();
}
return hRes;
}
But the shortcut is not created when for ex: pszLinkFile= "D:\MyFavorites\Online Bookmarks\button\How to convert char* to WCHAR* in C - C.url" and also sometimes if the atring contains ":" and ">>" such type of characters.At present the string contains "*" .How can i resolve this.
|
|
|
|
|
How can we add and delete registry entries in Vista.I wrote the program it is working in XP but it is not working in Vista.
Sample code:LONG Res = RegCreateKeyEx (HKEY_CLASSES_ROOT, lpszKeyName,
0,NULL,
REG_OPTION_NON_VOLATILE ,KEY_ALL_ACCESS,NULL, &hkResult,
NULL);
LONG Res=RegDeleteKey(HKEY_CLASSES_ROOT,lpszKeyName);
#sanroop#
|
|
|
|
|
In Windows Vista you need to have the application run under Admin privileges. You can do this by creating a manifest file. you can write to HKEY_CURRENT_USER key without having the admin privileges.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Please refer this[^].
Regards,
Paresh.
|
|
|
|
|
NEVER use KEY_ALL_ACCESS . Only ask for the access that you need.
|
|
|
|
|
Look for IHTMLDomNode2.
MSDN:This interface provides the ability to programmatically access all the nodes in the Document Object Model (DOM), iterate the nodes, insert and remove nodes, and retrieve the attributes of a node. It extends the IHTMLDOMNode interface.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
how to use tabbed dialog activex control.how to set properties of this control at run time.how to set dialog or propertysheet for tab in this control.
plz give sample code.
|
|
|
|
|
hi,
I am using picture control and created a control variable for it.. i need to set bitmap programatically by using the control vareiable i created ..
any idea on how to do it... ?
and can it be done by setbitmap()?
Harsha
|
|
|
|
|
If you have a static you can set bitmap with SetBitmap for this control,Is this your question ?
|
|
|
|
|
i have two bit maps to be displayed on two different conditions on a same picture control.. my question is how we can do it ?
Harsha
|
|
|
|
|
Do you want to show two bitmaps(two status) where you want to change this status when you click a button?then use of SetBitmap.(if isnt your answer can you more explain,please)
|
|
|
|