|
isspace tests for spaces (' ' ), tabs ('\t' ) and new lines ('\n' )...
why not using std::string::replace("\n", "\r\n") ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
That sounds like what i need. Was not aware of that.
What would the syntax look like for this?
I have
std::string Response;
//Response has large amount of text with many "\n"'s
Response.replace ("\n","\r\n"); i get an error 2661 on this line
//The above line should parse throuh and replace all occurrances of \n with \r\n right.
|
|
|
|
|
|
Hello,
I am developing an application where I need to load custom data to Analysis Server (MS-OLAP) without going through any OLE DB Provider.
I am able to load data into dimensions/cubes using Microsoft OLE DB provider for ODBC Drivers. But my requirement is loading data at runtime from a buffer. Is there any way to do this? Are there any APIs which can help me to load this data directly?
Thanks & regards,
kuldeep kumar
|
|
|
|
|
I have an ATL server exe multithreaded application and vb ActiveX Control as client. While running this apllication it crashes very randomly. While debugging step by step it does crashes very rarely but for the same if executed the debug exe, it gives error as "Unhandled exception in ntdll.dll :0xc0000005 access violation " The call stack shows
NTDLL! 77fcc1e1()
KERNEL32! 7c57919d()
CNoTrackObject::operator new(unsigned int 16) line 84 + 12 bytes
CThreadSlotData::SetValue(int 1, void * 0x001a7640) line 277 + 7 bytes
CThreadLocalObject::GetData(CNoTrackObject * (void)* 0x5f48f230 CThreadLocal<_AFX_THREAD_STATE>::CreateObject(void)) line 408
CThreadLocal<_AFX_THREAD_STATE>::GetData() line 173 + 13 bytes
CThreadLocal<_AFX_THREAD_STATE>::operator->() line 185 + 15 bytes
AfxGetModuleState() line 235 + 10 bytes
AfxGetModuleThreadState() line 253 + 5 bytes
AfxTermThread(HINSTANCE__ * 0x5f500000) line 283 + 5 bytes
DllMain(HINSTANCE__ * 0x5f500000, unsigned long 3, void * 0x00000000) line 138
_DllMainCRTStartup(void * 0x5f500000, unsigned long 3, void * 0x00000000) line 273 + 17 bytes
NTDLL! 77f830e7()
NTDLL! 77f837f5()
KERNEL32! 7c59b9f0()
KERNEL32! 7c57fe9a()
KERNEL32! 7c57b388()
I am not able to understand where to attack....
I am aware of the general causes for access violation.
Please suggest....at the earliest...
Smita
Keep your hearts free from hate, your mind from worry. Live simply, expect little, and give much. Fill your life with love. Scatter sunshine. Forget self, think of others. Do as you would be done by.
|
|
|
|
|
sduraphe@sarlatech.com wrote:
I am not able to understand where to attack....
I am aware of the general causes for access violation.
This type error generally come when you try to write on unintialised Pointers
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi!
i want to read emails that have been downloaded in my outlook express.can anybody help me in this context.quick response will be highly appreciated.
regards
Aman-ul-haq
|
|
|
|
|
aman_ul_haq1888@hotmail.com wrote:
want to read emails that have been downloaded in my outlook express
IStoreNameSpace and IStoreFolder Interface will help in your case. Also, you can refer to this article....
http://www.codeproject.com/com/Outlook_Express_Messages.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
I am thinking about installing DirectX9 SDK, but I am affraid about the performance impact.
I suppose the SDK comme will some "debug feature enabled" versions of DirectX libs.
Will those libs be used by commercial applications (i.e. games) instead of the normal end user ones and will it impact speed or stability ?
I am using Visual C++ 6.0 (SP6) on XP Home SP2.
Thanks for your advices/tips,
Th.
-- modified at 9:16 Friday 2nd September, 2005
|
|
|
|
|
Perhaps you may re-install single user DirectX after the SDK?
Eric
"If it is not broken, do not fix it"
|
|
|
|
|
After checking, it seems that you have a choice in DirectX control panel applet to use retail or debug versions.
Be aware that there are settings for many modules (Direct Input, D3D, ...).
But... (you'll hate me ) after setting everything to "retail" I ran DiagFX whichfire me a warning about the fact I used a lib (only one) indebug mode and that it may be slower...
My advice: Use a different computer for coding and playing
Beside your issue, it is always tempting to use beta untested features on a development computer, and most very optimised games do not like this !
Good luck,
Eric
"If it is not broken, do not fix it"
|
|
|
|
|
I've got a Visual Studio C++ 6.0 project which I am now trying to get working in VC++ .NET. I've encountered a problem with some file handling code which originally used <fstream.h>, I've changed this to use <fstream> however I am now encountering compilation errors when I'm accessing the file, e.g.
fileA.seekg ( EIGHTWORDS, ios::seek_dir::cur ) ;
it complains about the ios::seek_dir::cur part. Does anyone know what the equivelent 'flag' is in .NET and also where I can get a list of all other flags (MSDN doesn't seem to be much use on this)
TIA,
Andy
|
|
|
|
|
what is the error message ?
did you try prefixing with std:: ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Thanks for your reply, the exact message I get is:
"error C2510 : 'seek_dir' : left of '::' must be a class/struct/union"
I've tried putting std before it but that has no effect.
|
|
|
|
|
looking at the MSDN[^], you should use ios::cur directly...
the error message tells you that you apply the operator :: to a non object identifier (seek_dir is not a class but an enum)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
yep your right, thank you for helping me.
|
|
|
|
|
why i'm not able to find an UDP client server programs in "Pairs".. all samples i got arein the name.. "SendRecieve" in the same program...(or am i in a confused state?? ) can any one give me a link for "SIMPLE Client/Server UDP program" ??
in MFC ?
thanks
V
|
|
|
|
|
|
Hi All
I used Windows management Instrumentation, registry access (used RegOpenKeyEx etc.) , & few APIs to build an application.
Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically.
What should I do to prevent this problem.
Please reply ..
Thanks & Regards.
|
|
|
|
|
I've never found such an strange behavior like that. Do you have any piece of code candidate that we could take a look?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Information related to program are as as follows
1) Program is written in VC++ 6.0.
2) WMI Classes for retrieving system hardware & software Inforamation.
3) Used Registry keys for information retrieval,(here I used RegOpenKeyEx(),RegEnumVale(), RegEnumKey() etc.)
4) Used some APIs for information retrieva(like OS Version, Computer Name, Number of processors etc.)
5) All the property pages are added to sheet in OnInitDialog() function.
6) Also everything is written in OnInitDialog().
7) For every resource(S/W or H/W) a linked list is created .
8) node of Linked list is structure whose attributes are TCHAR and _bstr_t type
9)structures contains all the information retrieved by either WMI, or by Registry or by APIs.
10) Finally values are displayed on property pages through structures.
* I have checked task manager there is no instance of program after termination.
* Time span is not more than 10 mins.
*Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box.
*Also program is even terminated when there are no activities being done on the PC
Please reply .
Thanks
|
|
|
|
|
You'll have to Debug and put several breakoints over the app to know where can it be the problem. You also can write a log file a write it in severela points of the applications where you suspect that there's the problem.
MArc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Does this only happen in your release build? How about when you run the debug version under the debugger and leave it running?
I've seen an app just disappear before as a result of stack corruption or overflow. In one case, someone was appending characters to a char buffer or STL string (can't remember which) in a loop. Problem was, they forgot to initialize the loop count. Thus, the loop kept going in the release build and the buffer was seriously overrun. In another case, stack overflow occurred when a function was being called repeatedly/recursively in response to network traffic.
|
|
|
|
|
rajeevktripathi wrote:
Now problem is that when i run the program then after 5-10 minutes dialog box(of exe) disappeares automatically.
Your Executable may failing due to one or more reason, try to debug your Executable thats the only way to find solution!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
This is a simple question. I have a dialog based application window and i want to resize it before displayed on the screen. I used the PreCreateWindow and the SetWindowPos within OnInitDialog but without success. What i'm doing wrong?
|
|
|
|