|
It seems the horizontal bar cannot be used as you expected. It is supported by the list box only in case of multicolumn lists, and does not perform horizontal scrolling for long items.
I think you can try an alternative solution based on "list control" instead of "list box" (available in Dialog Editor too). When a list control is used in Report mode, it looks like a list box with or without header, but with new features, like horizontal scrolling.
I hope this helps.
|
|
|
|
|
Hi..
Thanks a lot for the reply..
I ll try with listcontrol and
get back to u if i have any problem..
regards
haasini
|
|
|
|
|
|
catch will execute, only if SQLConnect throws some exception or, code after call to it catch block throws exception.
Programm3r wrote: my whole application fails and closes down
That may be necessariy because of passing some invalid parameters to SQLConnect .
|
|
|
|
|
First of thanx for the reply..
"...That may be necessariy because of passing some invalid parameters to SQLConnect..."
O.k, but if what you you are saying is true, then the catch block will catch it .. right?
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Programm3r wrote: O.k, but if what you you are saying is true, then the catch block will catch it .. right?
As I said earlier,catch will execute only if exception is thrown from try block.
In above case, its not necessarily checked by SQLConnect for invalid memory.
consider this code for understanding
int foo1(char* p)
{
try
{
memset(p,0,10);
}
catch(...)
{
throw;
}
return 0;
}
int main(int argc, char* argv[])
{
try
{
char *p=NULL;
foo1(p);
}
catch(...)
{
cout<<"in Catch"<<endl;
}
}
In you case foo1 like implementation might not implemented by SQLConnect.
If you try removing try, catch from foo1 function, above code will crash irrespective of try, catch in main .
|
|
|
|
|
Thanx Prasad, that answers my question ...
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Hi,
I'm fairly new to the socket programming.
How to update the data getting from socket into database?
Please help me.
Regards,
Ravi Shankar.S
|
|
|
|
|
I want to make installer of my project. I want to integrate msxml6.dll with my project.
as far as i know there are two ways in which i can instanciate msxml6.dll object.
1. Put it in system32 so it can be retrieved by application at run time : But this will break if someone elese updates it or repairs OS.
2. Put it in my program directory, make a registry entry in my namespace and While instanciating [CreateInstance()] I supply exact path (from registry) of DLL to be instanciated.
Now, I am not sure about how second option to be coded.
Is there any other approach ?
I went through tutorial given by msdn for the same. The have merge module for msxml4. I am not sure how to do it for msxml6. Please help.
|
|
|
|
|
You shouldn't be installing MSXML yourself. Use the redistributable installer from MS.
|
|
|
|
|
Its true,
But say, client system does not have msxml6 and i want to install it then they have given a method of using merge module. Which i can put it in my installer. But as you can see its for msxml4. Any idea how to doit ? do u hav any documentation for the same ?
Check my previou link for msxml4 merge module.
thnx for reply,
|
|
|
|
|
Hi,
my string is CString STemp="PV SV MD";
I have to check whether SV or PV or MD is present in the string.
if(PV is present)
{
certain functions;
}
if(SV is present)
{
}
I have to check the presence of any two characters in a string.How can i make this?
I use Find() but it gives the position but i want a particular character.
Any function is there??Pls...
Anu
|
|
|
|
|
Anu_Bala wrote: I use Find() but it gives the position but i want a particular character.
PV or SV you mentioned are strings.
Anu_Bala wrote: I use Find() but it gives the position but i want a particular character
Whats problem with this ? if Find return -1, string is not present, other wise its there.
|
|
|
|
|
Ya, i used Find().
I need one more help that is my string reads like this
"pv m3 PV|| sv m3 SV||MD||"
here i want to extract the string " sv m3 " from the above string.The number of characters may vary.But space and new line are used to seperate the words.
Pls help me out.
I think u get my point.
Anu
|
|
|
|
|
Anu_Bala wrote: here i want to extract the string " sv m3 " from the above string
Then whats problem with Find ?
Anu_Bala wrote: The number of characters may vary
I assume you want to say, it can "SV m3 SV",is it?,
|
|
|
|
|
Thanks for reply..
I explain you my need in details.
First the string is like this sTemp="sub m3 PV||add m3 SV||MD||"
Then i have to extract few things and i have to put in to seperate string
Final String, CString StrFinal = "PV||SV||MD"
I know to extract first two things i.e., sub m3
i did like this
int pos2 = sTemp.Find("\n");
sTemp3 = sTemp.Mid(pos2-3);
sTemp=sTemp3;
here STemp = PV||add m3 SV||MD
And then i have to extract add and m3.
But i dont know to extract the middle add m3 . i need this thing
Anu
|
|
|
|
|
Cant you use same logic? i.e.
I assume each sub string you mentioned here is preceded by '\n'.
And what does || stands for ? Is it a kind of separator ? If yes, you can use it,too.
i.e. Find "||" and extarct 2 chararacters preceding it.
Keep appending result string.
|
|
|
|
|
Do you need to get a middle a string like your example?
|
|
|
|
|
Yes,that || is a newline character which is displayed like this in our coding.
Anu
|
|
|
|
|
Is it possible for you to find space between add m3 or you dont have a space in your string
|
|
|
|
|
Hi,
You can use Strcmp function to compare two strings.
Regards
Velayudhan
|
|
|
|
|
use CString::Find if your string isnt exist return value of Find is -1 else its location of string
|
|
|
|
|
I found that some *.cpl have exported many useful functions.
how colud I launch some export function?
for example:
in firewall.cpl,there are some export functions:
CPlApplet
Install
ShowControlPanel
ShowNotificationDialogW
Uninstall
Thank you
|
|
|
|
|
Run control.exe to launch an applet, for example:
control %systemroot%\system32\firewall.cpl
|
|
|
|
|
Thank you. I knew how to launch an applet.
I mean how to launch an export function of an applet.
|
|
|
|