|
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)
|
|
|
|
|
Thanks whitesky its working with setbitmap
Harsha
|
|
|
|
|
You're welcome
|
|
|
|
|
If you have the bitmap in the resource, create an object of CBitmap . call LoadBitmap function of it and then pass this obejct to SetBitmap function
If you want to load the bitmap from the file, use the LoadImage function. It will return the handle of HBITMAP, Attach it to CBitmap object and then pass this object to the SetBitmap function.
nave
|
|
|
|
|
ya thanks its working
Harsha
|
|
|
|
|
I have to implement a string search in an excel file. can I some examples regarding this.
S.Yamini
|
|
|
|
|
Give me your exact requirement and the platform or tech
which u are going to apply so that i can help.
thank you
|
|
|
|
|
I have to implement a string search in an excel file. can I some examples regarding this.
S.Yamni
|
|
|
|
|
What sort of search you require, explain a bit. then i am ready to
give you the sample or how to do it.
|
|
|
|
|
CString str;
char ch[6];
str="yamini";
ch=str;
In this I am trying to transfer the string in str to ch buffer.
S.Yamini
|
|
|
|
|
CString str;
char ch[6];
str="yamini";
ch=str;
strcpy(ch, str.GetBuffer(str.GetLength()) ); //Use this to cpy to buffer //Check the length
//or if u have ch as char* ch
//then ch = str.GetBuffer(0); //This code just points does not give a copy
//Let the allocation be dynamic
|
|
|
|
|
This works great.Thanks. I want to learn automation inVC++. Can u plz suggest some links or books.
S.Yamini
|
|
|
|
|
hi,
I am trying to develop a programme to let the user key in their name, then compare their name to the input file i have created using a notepad.
Can anyone suggest me how to check the name key in by the user to the names in the input file?If the name input were the 20th name, then how do i find it from the list? Do i need to use looping?
Another thing if i were to set let say in the same name list, for the first 5 person they need to do certain experiment. For the next 5 they need to do another different one. Then how do i do that?
The programme which i am trying to develop is some sort like a programme to identify the user and hence tell them what class do they need to attend,when,where.
THANKS.
-- modified at 9:10 Tuesday 3rd April, 2007
|
|
|
|
|
tanchinchee wrote: Can anyone suggest me how to check the name key in by the user to the names in the input file?
I don't see clearly the problem but wouldn't strcmp[^] work ? You just have to compare the strings, right ?
|
|
|
|