|
Any suggetions as to how I could resolve this?
Thanks a million
|
|
|
|
|
By debugging your code and working out why your code's not getting called when it should be. If that means debugging assembly language, then that's what you need to do.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I am not sure what to say, I just installed VS on a different machine and I get the same thing, no message box.
I used a full install.
Thanks
|
|
|
|
|
Which says there's something not quite right with your code, not your Visual Studio install.
Debugging's the way forward in this case, I'm afraid.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello there,
Found it.
This should have not been used, when I am verifying the key to the main app.
m_pMainWnd = &dlg;
Thanks a lot for all your help.
|
|
|
|
|
Well done - I'm glad you found the problem.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Stuart Dootson wrote: Sounds like there's something wrong with your system
At last there's a reason for those bunch of tree huging hippy testers to be happy!. A support to their slogan.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Hi all ,
i m using SmsSendMessage api for sending sms but its fails.
my code is.
LPCTSTR lpszSMSC, lpszRecipient, lpszMessage;
SMS_HANDLE smshHandle;
SMS_ADDRESS smsaSource;
SMS_ADDRESS smsaDestination;
TEXT_PROVIDER_SPECIFIC_DATA tpsd;
SMS_MESSAGE_ID smsmidMessageID;
HRESULT hr = SmsOpen(SMS_MSGTYPE_TEXT, SMS_MODE_SEND, &smshHandle, NULL);
if (hr != ERROR_SUCCESS)
{
return hr;
}
smsaSource.smsatAddressType = SMSAT_UNKNOWN;
_tcsncpy(smsaSource.ptsAddress, lpszSMSC, SMS_MAX_ADDRESS_LENGTH);
smsaDestination.smsatAddressType = SMSAT_UNKNOWN;
_tcsncpy(smsaDestination.ptsAddress, lpszRecipient, SMS_MAX_ADDRESS_LENGTH);
DWORD sof = sizeof(TEXT_PROVIDER_SPECIFIC_DATA);
memset(&tpsd, 0, sof);
tpsd.dwMessageOptions = PS_MESSAGE_OPTION_NONE;
tpsd.psMessageClass = PS_MESSAGE_CLASS1;
tpsd.psReplaceOption = PSRO_NONE;
SmsSendMessage (smshHandle,&smsaSource,
&smsaDestination,
NULL,
(PBYTE)lpszMessage,
_tcslen(lpszMessage) * sizeof(TCHAR),
(PBYTE) &tpsd,
sof,
SMSDE_OPTIMAL,
SMS_OPTION_DELIVERY_NONE,
&smsmidMessageID );
SmsClose (smshHandle);please help me for this.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
You should check the return value of SmsSendMessage .
This will give you a better idea.
Look at the documentation of SmsSendMessage[^] in the Return Values section.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Its return value is E_FAIL.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
What platform are you using?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Pocket PC 2003 ARMV4
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
I am using the "Powercfg.exe" (Power Settings Command-Line Tool) for changing the power settings on different platforms.
The power options (switches) I am using are
1. Enable Hibernation (/HIBERNATION)
2. Enable Device wake (/DEVICEENABLEWAKE)
For Windows XP and Vista these switches work perfectly fine.
The problems I am facing are on Win2K3 and Win2K
1. Win2k3: "Powercfg.exe" do not have the “/DEVICEENABLEWAKE" switch. Is there any another way to configure the device wake enable settings on Win2k3?
2. Win2K: do not have the "Powercfg.exe" command line tool, if we are using the Win2K3 "Powercfg.exe" utility to change the settings. The same issues are there for Win2K as well.
Apart from the command line configurations are there direct APIs available?
|
|
|
|
|
Hi all,
please explain me in CEMAPI having any function which is having same characterstics like PROVIDER_SPECIFIC_MESSAGE_CLASS .
please help me hor this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi all,
i m using cemapi to sending sms, for sending texe sms use value "IPM.Note" or "IPM.SMStext".
now i want to send a msg that should be displayed immediately but not stored,
like same when i set PROVIDER_SPECIFIC_MESSAGE_CLASS to PS_MESSAGE_CLASS0 .
i think this can be done with use of PR_MESSAGE_CLASS in CEMAPI.
please tell me i m on right track,if not please suggest me right function for this.
so please what value can i use?
please help me.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi
I am using visual studio 2008 VC++9.0 version with crystl32.ocx version 5.2
I want to use crystal control with setselectionformula()..My application display E instead of displaying report..Its because of exception..
Pleaselet me know how to come out from exception.
Thanks,
Azhar
Please see my code below:
void CAssetReport::OnBnClickedEmployeeidwise()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CCrystalCtrl *m_ControlEmployeewise = (CCrystalCtrl*)(GetDlgItem(IDC_CRYSTALREPORT5));
char cEmployeeID[80];
CString str1;
if(m_nEmployeeID == 0)
{
AfxMessageBox(_T("Employee ID is missing...!"));
CEdit *edit = (CEdit *)GetDlgItem(IDC_EDITEMPID);
edit -> SetFocus();
edit -> SetSel(0,-1);
return;
}
sprintf_s(cEmployeeID,"{Employees.EmployeeID} = %ld",m_nEmployeeID);
str1 = cEmployeeID;//{Employees.EmployeeID} = 76745
m_ControlEmployeewise->SetReportFileName(_T("C:\\Projects\\ServiceRequestApplication\\Report\\Employeewise.rpt"));
m_ControlEmployeewise->SetSelectionFormula(str1);
m_ControlEmployeewise->SetDiscardSavedData(TRUE);
m_ControlEmployeewise->SetAction(TRUE);
UpdateData(FALSE);
}
|
|
|
|
|
Hi,everyone!
The style of my CListCtrl is large icon.When I try to insert an item into it,the icon of the new item is always at the end. But the index of the new item is correct.
For example:
before insert F
A C E
B D
after I insert F to index 2,like this:
m_ListCtrl.InsertItem(2,_T("test..."),0);
A C E
B D F
though index of F is 2.
attributes of the list control:
autoarrange-true;sort-none;alignment-left
Anyone can help me?
Thanks in advance.
|
|
|
|
|
Could you try with autoarrange set to false.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for your answer,superman.
Actually I've tried this but failed.
After all, i need the autoarrange attribute when removing items.
Now my solution is sorting items by index mannually.
I am waiting for better solutions.
|
|
|
|
|
Is there any way to read files such as .doc, .xls and load their data into a buffer? I used fstream functions to open a file, get its data and put its data in another file. on .txt files it's able to take that data and successfully place it in another txt file fine. however it's not the same for .doc or .xls files (get weird characters, possibly japanese ). was wondering if anyone could suggest an alternative, or a fix on reading data from non .txt files properly.
thanks
|
|
|
|
|
Well, .doc and .xls files are binary files. They do not only contain text, but also all extra information (formating, styles, ...). Otherwise, where would this information be saved ?
If you want to read the data in them, you have to use automation (google for word automation and excell automation). The subject is a bit too broad to cover here.
For other file types, it really depends of which type of file you want to open. Each file type has its own format, and you either need to parse the file accordingly to the format (which is probably a though job) or find libraries that do that for you.
|
|
|
|
|
Just the thing I was afraid of
thanks Cédric
|
|
|
|
|
|
I've heard of the ADODB abstraction class, and I've seen it used successfully in VB codes (loading as bytes), but would that come under managed C++?
thanks
|
|
|
|