|
void func1(char *src, char *sub)
{ /* Using function Mystrcpy1 */
char *p;
if ((p=strstr(src,sub)) != NULL)
Mystrcpy1(p,p+strlen(sub));
return;
}
instate of this use
while((p=strstr(src,sub)) != NULL)
Mystrcpy1(p,p+strlen(sub));
|
|
|
|
|
Hi i am creating a SAFEARRAY of User define datatype i.e a structure which i described in my .idl file .
Now while creating a SAFEARRAY i have done this ..
IRecordInfo *pRecInfo = NULL;
//CIHPCRInjectorBarcodeData - is my structure
const GUID UUID_CIHPCRInjectorBarcodeDataStruct = __uuidof(CIHPCRInjectorBarcodeData);
shr = ::GetRecordInfoFromGuids (LIBID_HPCRInjectorSetupGTIS45Lib ,
1,0,0 ,UUID_CIHPCRInjectorBarcodeDataStruct ,
&pRecInfo );
SAFEARRAYBOUND rgsBound[1]; //This is one dimensional array.
long *pData;
long lValue , lIndex ;
rgsBound[0].lLbound = 0;
rgsBound[0].cElements = 8 ;
//Now Create SAFEARRAY
SAFEARRAY *psa = 0;
psa = ::SafeArrayCreateEx (VT_RECORD ,1,rgsBound,pRecInfo);
while debugging i found that elements are not getting initiallized ..
Please help
|
|
|
|
|
pandit84 wrote: while debugging i found that elements are not getting initiallized
Define initialised. If you're expecting SafeArrayCreateEx to copy elements into the array for you, I think you're expecting too much. I think you'll find it just uses the IRecordInfo interface to determine how much storage the SAFEARRAY needs.
Have you seen this example[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks...
i have created and used succesfully...
Thanks a lot
|
|
|
|
|
I am using VC++ 6.0 for developement.
I want to know how to find audio file advance properties like "Album","genre" etc
Please let me how to do this in vc++ 6.0
|
|
|
|
|
Different audio files like MP3, WAV, WMA, RA etc. etc. have different file formats.
The properties that you mentioned will be stored in different locations in different file formats.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I need to read a MP3 file.
Please let me know how to do this task
modified on Monday, March 2, 2009 1:05 AM
|
|
|
|
|
I'm pretty sure most audio files store properties like this in id3 tags....
I think id3lib [^] is an opensource C++ api.
|
|
|
|
|
|
Hi all,
I have SDI type application.I want to handle Show Desktop from all options.
like from Quick Launch option,Wnd+D,Show the Desktopn From TaskBar menu, etc.
please can u tell me solution for this.
how can handle all options of show desktop.
please explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
What do you mean by "Show Desktop from all options." ?
|
|
|
|
|
I mean all options those are use in Window to show desktop.
Like Wnd+D,Show desktop shortcut,Show desktop shortuct in Quick launch,Show desktop option of Taskbar Menu.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: Like Wnd+D,Show desktop shortcut,Show desktop shortuct in Quick launch,Show desktop option of Taskbar Menu.
All these functions are going to call the same function that iterates through every window handle & minimize them right? Just a ShowWindow(MIN) would do that right? What extra functionality do you think a "show desktop" is doing other than minimizing all windows?
|
|
|
|
|
Ok,Please tell me how can i know when any one of this is called.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
Please tell me how can i use it in VC++.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
#define MIN_ALL 419
#define MIN_ALL_UNDO 416 //the other option.
void minAll()
{
HWND lHwnd = FindWindow(L"Shell_TrayWnd",NULL);
SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);
}
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Please can u explain me this code and tell me where i can use this,and how can know the all windows are minimzed or not in my application.
please help me for this.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
VuNic wrote: #define MIN_ALL 419#define MIN_ALL_UNDO 416 //the other option.void minAll(){HWND lHwnd = FindWindow(L"Shell_TrayWnd",NULL);SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);}
i have try this code,this use to minimize all windows.
but i want if all windows are minimized than i do sumthing like Show messagebox.
my aim not to minimize all windows,i want to catch the message when all windows are minimized.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
If you watch the messages to the Progman window (using Spy++), you can see that WM_USER+83 is sent during this action. If you could track this, I think you will get what you are seeking.
- ns ami -
|
|
|
|
|
I have no idea of Spy++ can u please explain me with any example or exaplain me step by step how can i use this.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Spy++ is available with Visual Studio Tools. You will get it from "Start Menu\Programs\Microsoft Visual Studio 6.0\Microsoft Visual Studio 6.0 Tools". Using the Spy++ is documented in its Help.
- ns ami -
|
|
|
|
|
You've asked about Spy++ before.
1/ Find it in the IDE's menu.
2/ Run it.
3/ Play with it.
4/ Remember results of the playing.
This is called learning, and is very useful.
More seriously, it is a very useful tool to know, and you should make working with it a priority.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi All
How can i filter text file?I have a file Test.txt which have some data like this.
abc
abc
12121
12121
12
12
133
133
133
Now i want to show data on Button click like this
abc
12121
12
133
Plz help me...
|
|
|
|
|
One alternative is to put the read string into a map. Once you do this, go and read the next string from the file. If this string exists in the map ignore it and do not put it in the map and so on. While displaying, display only the elements present in the map.
Hope it helps
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|