|
I have checked the styles
From Spy and u are right it is not listed in the styles..
Some how it is being removed or like that
i m using these properties
WS_CHILD | WS_BORDER | WS_VISIBLE | ES_LEFT |WS_EX_CLIENTEDGE ,
if can tell me something.........
thanks & regards
Indian Ocean
|
|
|
|
|
WS_EX_CLIENTEDGE is an extended style, not a regular style, so it can not be used with the other styles you listed.
Use the CreateEx function to create your edit control
MyEdit.CreateEx(WS_EX_CLIENTEDGE,
_T("EDIT"),
NULL,
WS_CHILD | WS_BORDER | WS_VISIBLE | ES_LEFT,
&Rect,
pParentWnd,
nID,
NULL);
See CWnd::CreateEx in MSDN for more info.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
hello friends i need to develop a vc++ program which can add new item in menu of excel and can open a form to insert text in selected cells
|
|
|
|
|
Ok, so what exactly do you need help with? Have you looked at MSDN article Q178749 to see how to use Excel automation?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
hello friends i need to develop a vc++ program which can add new item in menu of excel and can oen a form to insert text in selected cells
|
|
|
|
|
Hello Friends
How can a MFC application determine if it was invoked in response to one of its registered file being double clicked?
regards,
Kuldeep
|
|
|
|
|
You can check the command line that was passed to the application.
If you vote me down, my score will only get lower
|
|
|
|
|
KSMANN wrote:
How can a MFC application determine if it was invoked in response to one of its registered file being double clicked?
In continaution With Mr. Roger, you have use to GetCommandLine() Api to reterive commandline.
"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'm quiet arrived...
I know how to load a Dll with LoadLibrary, and how to get a pointer function with GetProcAddress. And this, between Borland C++ Builder and Visual C++.
I know, with Borland only, how to return a class's pointer in an extern function (the pointer of the fonction is obtained by GetProcAddress). Then, I can call the class methods in the Dll loaded by loadlibrary.
But in visual, for the moment, i don't arrive to do the same ...
Thanks if you've a sample for instance !
|
|
|
|
|
You could use the same principle as COM works: you have a function that will instantiate the object for you:
void GetObject(YourClass* & pInstance);
Your pointer is passed by reference that means the function won't make a copy of it so if you make a new, you will get the new adress in your program. Inside that function, you can then create your class (with new).
One really important thing is that you have to be carefull with memorory deletion: you cannot delete this object in your program !! It has to be freed in the DLL itselfs ('cause it has been allocated in the DLL memory). The best way to delete the object is to add a function for doing that:
void YourClass::Destroy()<br />
{<br />
delete this;<br />
}
Hope this helps
|
|
|
|
|
Thanks ! But I have one more problem (easyer for you ..) How tell (declare in a header ".h") to the linker that the reference of pInstance->MyMethod isn't to resolved in a ".lib" ??? - Damned visual I'm new in visual C++ lol -
Thanks again,
|
|
|
|
|
From what I know, you cannot. The compiler needs to know if the function you are calling is included in the file.
One solution to overcome the problem of including both the *.h and the *.cpp files in your project is to use an interface for your class: you just make your class inherits from a pure abstract class (a class that has no member variables and whose functions needs to be redefined in the child class). Something like:
class MyInterface<br />
{<br />
<br />
void Method1() = 0;<br />
void Method2() = 0;<br />
....<br />
}
And in a separate file, you define your class that inherits of MyInterface:
class MyClass : public MyInterface<br />
{<br />
void Method1();<br />
void Method2();<br />
}
And the functions arre defined in the cpp file of the class.
So like that you only need to provide the .h file of the interface to your program and your program will only use a pointer to the interface. But inside the dll, when you create the pointer, you create in fact the child class.
Hope this helps
|
|
|
|
|
There is a function that checks for white space in a string called
isspace(int nTest)
Is there a similiar type function that looks for a "\n"?
I am trying to insert a \r before every instance of \n in an std::string
|
|
|
|
|
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
|
|
|
|