|
for(int i = 0; i < m_array.size()-1; i++)<br />
{<br />
if(m_array[i] == "123")<br />
{<br />
[...do this...]<br />
}<br />
}
thats one way.
*.*
cin >> knowledge;
|
|
|
|
|
No sorry. It is a number, but not always "123".
YOu can't know it in advance.
(sorry if i made question not clear enough)
|
|
|
|
|
<br />
<br />
for(int n=0;n!=m_array.GetSize();n++){<br />
if(m_array[n].GetLength()){<br />
if(isdigit(m_array[n].GetAt(0)))<br />
MessageBox(m_array[n]+" wow! is a number");<br />
}<br />
}<br />
|
|
|
|
|
Thanks alot wb
I did this trick by your help :>
<br />
for (i=0; i<TextArray[2].GetLength(); i++ )<br />
{<br />
if ( !(isdigit(TextArray[2].GetAt(i))) )<br />
{<br />
bOk = false;<br />
}<br />
}<br />
|
|
|
|
|
That'll work, assuming you don't have any instances of something like "1ABC" or "ABC1" in the array.
|
|
|
|
|
try :
<br />
if (atoi (m_array[0])==0 && m_array[0]!="0")<br />
else<br />
You can alos go through each and every one of the character in the string and use the IsDigit function
Shay
|
|
|
|
|
Hi,
Is there any sample code in VC++ to zoom the image display.
I use Bitblt() function to display the image in a view.
Regards
Neha
|
|
|
|
|
|
i am trying to develop an application which prints the web page even it spans horizontally/vertically multiple pages.
i am converting the html document to image and printing the same.
since i am capturing the screen and printing the image ,my css style properties specific to printing are lost.
How do i tell the browser control to read the print media specific information so that when it loads the page it renders the print media specific info onto the screen. is there any exposed method in webbrowser control or what interface should i use to achieve the functionality.
Please suggest me ..
gvs
|
|
|
|
|
Hallo,
i´ve software which supports different languages (german, english, frensh). The software is compiled on a german system and needs a statically linked MFC. So the problem is that Error Messages which come from the MFC such as by CException::ReportError() are already in german.
Is there a way to compile the software with the english version of MFC or to make the language of this messages dependent on system language?
Thanks,
Andy
|
|
|
|
|
Hi Big A!
Still have to fight with my inherited burden?
Two possibilities:
1. Compile the whole stuff on your english dev-station (which is always better I think)
2. uncheck the statically linked MFC stuff in the linker-options and redesign the installscripts...
hope this helps a little...
greetings from a strange world,
Olli!
Olli
"Ooooooh, they have the internet on computers now!" Homer Simpson
+ = NULL :=>
|
|
|
|
|
Hi Olli!
Thanks for your answer.
I have already compiled the hole stuff on my english system, but the messages are still in german.
This is very strange.
regards,
Andy
|
|
|
|
|
Hello
i need some tutorial or ebook about the API functions with the VC,
i got a very helpful tool called API guide but it's for the VB, and i need something like this for the VC....
Thanks in advance
|
|
|
|
|
|
thanks, i appreciate your effort, but i meant something for free
|
|
|
|
|
I got my copy of the book for $5 on ebay a while ago
If you want something free, from the visual studio IDE on any given CPP file type :: and a list of available API for whatever class you're using will pop up.
|
|
|
|
|
I got this API reference [^] which I use it a lot, because it is very convenient.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
How do I create a folder in Outlook Express by code through modifying the "folders.dbx" file? Simple MAPI doesn't allow such operation. The only possible way I can think of is through its dbx file but I can't find any information which discusses so. The only information and codes available is how to read values from it (like folder info, or message info).
I really am stuck in here.. Kindly help.
Thanks..
|
|
|
|
|
Use IMAPIFolder::CreateFolder() .
|
|
|
|
|
hi all i am stuck in the slider control.
the situation is some what like this. my application lets call it A is using to capture the behaviour of another application called B. the Hook iam using is WndProc Hook and GetMessage Hook, my current slider code (which is not working) is in WndProc handler function.
there are 3 questions
a) in my code of WM_NOTIFY would i receive the slider notifications or not
b) or i have to use a separate case that is like WM_HSCROLL
i have done this approach but in this case i amnot receving any thing. the value in wParam is always zero.
c) if you look at the MSDN documentation of Slider Notifications there u have a number of notification with TB_ prefix so i have to deal with WM_HSCROLL or these TB_ sor of things
i am in urgent need of ur comments
thanx in advance for ur time
regards
Basim
|
|
|
|
|
HI all i am once again faced with a strange situation i guess the nature of my project is some what like this.
now the problem is that the application that would be tested by my software is a very rich UI application and the scenario is like this that every spin is placed ona dialog frame having the class #32770, for every soin there is a separate #32770 i have verified this from the handle.
the design time ID for the #32770 class is 202 but by using GetWindowLong during run time i always get the ID to be 0.
has any one experienced such situation if so kindly help me
regards
Thanx in advance
BASIM;)
|
|
|
|
|
Hi,
I'd like a possibilty to include a "global define" (preferredly from an environment variable) in my builds
Is this possible? I'd like to avoid a "generic #include file")
(If it's important, the defines in question are for UNIT_TEST and "experimental" UNICODE support. I have already up to 4 configuraitons for some projects, and I don't want them to "explode" to 8 or 16 right now...)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
what exactly do you mean.....you can for example define an environment variable like "somepath" which contains some path "C:\temp". This variable can be used in your project settings as $(somepath). Does this help any?
|
|
|
|
|
Yes, this is how it works for a path - I wonder if it works for a #define...
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
The /D compiler switch should help here. Use /DSYMBOL to simply define a symbol, or /DSYMBOL=value to give it a value.
I'm not sure whether you want the contents of the switch to come from an environment variable, or you want the put the define in an environment variable.
For the first case, you can use %PATH% or equivalent from the command line, or $(PATH) from inside Visual Studio.
For the second case, use the CL environment variable, but in this case you have to replace '=' with '#' when assigning values to the variables.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|