|
xyz[1] = '1';
not
xyz[1] = "1";
|
|
|
|
|
This code should not have compile without errors.
CORRECTION:
switch (palav[0])
{
case 'A':
xyz[1] = '1'
break;
case 'B':
xyz[1] = '2';
break;
case 'C':
xyz[1] = '3';
case 'D':
break;
xyz[1] = '4';
case 'E':
break;
xyz[1] = '5';
break;
case 'F':
xyz[1] = '6';
break;
case 'G':
xyz[1] = '7';
break;
case 'H':
xyz[1] = '8';
break;
case 'I':
xyz[1] = '9';
break;
case 'J':
xyz[1] = '0';
break;
}
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Thank´s!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111
|
|
|
|
|
I have an app whs entering MTA instead STA by calling
HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
Now on Windows XP OS all common openfile dialogs behave
'microsoft way'
Any FileOpen Dialog even the style is OFN_EXLORER, or not, or
even I am using extended structure to get the XP left crap I get
folowings.
Current browsing folder have only bmp files.
In FileType Combobox I have 2 file filters, eg. (*.bmp) and (*jpg)
Default selection is bmp. I see the bmp files in the listview.
I am changing the File Types: to jpg. The list view is empty.
Now I change back to bmp. The list box is still empty !!!. There is no way to repopulate the list view unless I type explicit the *.bmp
in the File Name Edit Control.
Also none of the rich edit controls work. They crash.
If I join a STA CoInitialize() everithing is OK but I need the MTA.
If you know any work around couse I searched at msdn and ...
Thank you.
|
|
|
|
|
RIch Edit is still screwed up at least I solve it with the dialog:
BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
BOOL ret = CFileDialog::OnNotify(wParam, lParam, pResult);
OFNOTIFY* pNotify = (OFNOTIFY*)lParam;
switch(pNotify->hdr.code)
{
case CDN_TYPECHANGE:
{
CWnd* pWnd = GetActiveWindow();
CWnd* PDlg = pWnd;
if(pWnd)
{
GetFocus()->PostMessage(WM_KEYDOWN,VK_RETURN,0);
GetFocus()->PostMessage(WM_KEYUP,VK_RETURN,0);
}
}
break;
}
return ret;
}
|
|
|
|
|
How do you include a thousands separator in a C++ program. The separator will be used for input i.e., 2,000 and output i.e., 2,000. For now the input is more important.
For example you will be prompted to enter Your Amount: $2,000.00. When I run this now the comma throws the whole calculation off.
|
|
|
|
|
|
i cant understand why this is exiting the loop even if its false, what have i done wrong?
<i> do{
DateFormatValid = true;
cout << "Enter Date (DD"<<SEPERATOR<<"MM"<<SEPERATOR<<"YYYY)";
fflush(stdin);
cin.getline (Date,MAX_INPUT_BUFFER);
cout << endl;
if
(isdigit (Date[0]) && isdigit (Date[1]) && Date[2] == SEPERATOR
&& isdigit (Date[3]) && isdigit (Date[4]) && Date[5] == SEPERATOR
&& isdigit (Date[6]) && isdigit (Date[7]) && isdigit (Date[8]) &&
isdigit (Date[9]) && strlen(Date) == DATE_LEN)
{
DayStr[0]=Date[0];
DayStr[1]=Date[1];
DayStr[2]='\0';
iDay = atoi(DayStr);
MonthStr[0]=Date[3];
MonthStr[1]=Date[4];
MonthStr[2]='\0';
iMonth = atoi(MonthStr);
YearStr[0]=Date[6];
YearStr[1]=Date[7];
YearStr[2]=Date[8];
YearStr[3]=Date[9];
YearStr[4]='\0';
iYear = atoi(YearStr);
DateFormatValid = DateValid(iDay, iMonth, iYear);
}
else
{
DateFormatValid = false;
cout << "Date Format Invalid";
cout << endl;
}
}while (DateFormatValid == false);</i>
(DateFormatValid is a function)
HELP!!!
|
|
|
|
|
Does anyone know if it's possible to open and read the contents of Outlook PST files via some API?
|
|
|
|
|
I am not aware of anyway to directly access Outlook pst files, however, the Outlook Object Model would provide an indirect way to not only examine the contents of this file but also to manipulate it.
|
|
|
|
|
I was trying to display a jpeg picture in a window so i tried the Ole approach, but in all functions they use a constant HIMETRIC_INCH, which is apparently not declared in my header files.. which I think is very odd seeings i never saw anyone else complain about it in the comments.. I have Visual Studio 6.0 and I also have an up-to-date SDK installation. What's going on?
Kuniva
--------------------------------------------
|
|
|
|
|
"Search Results for HIMETRIC_INCH - 0 topics found" - Are you sure this constant does exist as normal windows constant?
Don't try it, just do it!
|
|
|
|
|
Well i got the functions from http://www.codeproject.com/bitmap/render.asp[^]. But i've also seen it used in various other articles that use the Ole way to load pictures. So yea.. it probably exists.. but seeings it's just a constant, maybe someone could just supply me with the value?
Kuniva
--------------------------------------------
|
|
|
|
|
HIMETRIC = 1/100th of a millimeter
25.4mm per inch
#define HIMETRIC_INCH 2540
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Jack Rabbit is correct!
I recommend you get a copy of 'Agent Ransack' and use it to search "C:\Program Files\Microsoft Visual Studio\VC98\", when ever you cann't find something you believe is there. Sometimes you need to do that just to find the correct header files, when MSDN fails to specify them.
I did that just incase it was and found:
#define HIMETRIC_INCH 2540 // HIMETRIC units per inch
defined internaly in the file "WINGDIX.CPP".
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
How odd I don't have a file WinGDIX.h... neither in my vc6 include directory, nor my ms sdk include directory.. weird.. guess it's update time. But thank you both for the replies
Kuniva
--------------------------------------------
|
|
|
|
|
Who said anything about WinGDIX.h? I said it was internaly define in WinGDIX.cpp, which is a supplemental file supplied with VC6.
"\VC98\MFC\SRC\WINGDIX.CPP"
It is not something you can include in your projects, but it did give the correct value for HIMETRIC_INCH.
The simple search also showed that it was not defined in a header file, and therefor must be defined by the programmer.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Oh.. Sorry about that.. mm odd, I did a search using the windows find utility, guess that doesn't work right.. Thx for the program.
Kuniva
--------------------------------------------
|
|
|
|
|
Hi,
i'm writing an email client with visual studio .net,
including 'windns.h' to perform dns query.
Passing DNS_TYPE_A value to DnsQuery_A function, program seem to work well, but using DNS_TYPE_MX, application do not work ;(.
I report below the code of my routine, hoping that
somebody can help me:
WSADATA wsaData2;
WSAStartup(MAKEWORD(2, 0), &wsaData2);
char *DestDomain="domain.com";
_DnsRecord *pResult = 0;
DNS_STATUS status = DnsQuery(DestDomain, DNS_TYPE_MX, DNS_QUERY_STANDARD, 0, &pResult, 0);
if (status == NO_ERROR) {
char DestHost[128];
lstrcpy(DestHost, pResult[0].Data.MX.pNameExchange);
MessageBox(NULL,DestHost,"Record MX:",16);
}
thx in advice,
Luca
|
|
|
|
|
I need some help I have a flight simulator program to write on one days activity at an airport using the following as input data. No. of available runways, average time runway is in use for arrivals and departure, average no. of arrivals and departure for a particular airline and average arrivals and departure for all other airlines. I would be gratfull for any help.
jo
|
|
|
|
|
Better don't choose the easy way and do your homework alone. This page is for helping other people, not for doing their planning!
Don't try it, just do it!
|
|
|
|
|
so, where exactly is your problem ? problem definition ? code/compilation problem ?
what have you done yet ? did you start coding it ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hi all expert out here
i'm working on a project, where create an ActiveX plug in for MSIE, which gv IE the ability to resizing image without needs for another stand-alone software. can i get some links for any tutorials which touch step by step development of this ActiveX control? i myself hv found some thru search engine, how ever still vy confuse and blur about it, especially about how do i get the event readimage from the browser.
beside it, i would like to make use of some image processing library to make my life easier, and implement some resamplign algorithms provided. Any suggestion? Intel OpenCV is a good one?
thx in advance for my replies i might get
|
|
|
|
|
Hello,
Hello,
I have a application where I have integrated an ActiveX ShockwaveFlash ! Since then, I cannot receive any longer my windows user(registered) messages ...
Please help,
alain
There is no way to happiness, happiness is the way !
|
|
|
|
|
I would like to send the Ctrl Alt Delete sequence to another computer similarily as the VNCViewer application does. How can this be done? IMsRdpClientNonScriptable::SendKeys is only for XP.
|
|
|
|