|
Hi again.
Please remove your new post, else someone will be offended.
It's best to keep our conversation in this thread.
Kakan
|
|
|
|
|
I have DLL library and .h file but it has been created in Borland
and i can not use its .lib file. And only thing, DLL exports is one class.
So I am lost.
Does somebody know how to do run-time dynamic linking for
such library - how to reach its class?
Or is there any way or program to create(generate) proper .lib for MSDEV,
just from DLL and H file?
Thankx lot
viliam
|
|
|
|
|
viliam wrote: Does somebody know how to do run-time dynamic linking for
such library - how to reach its class?
you can do Runtime Linking of A function.. For class it is not possible as you don't address of a function till your object of class is created
"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 looking for ways to to paste Windows Clipboard content into MSHTML including images. I've come to the conclusion that using RTF from the Clipboard and converting that to HTML is the only sensible way to tackle this. Any other ideas most welcome.
So I'm looking for code to convert RTF to HTML. It must do images and support all of the most common RTF stuff. I prefer to get the source, but failing that a DLL would do.
I've googled and there are commercial components which are all pretty pricey, especially if you want source.
Suggestions, tips, pointers???
Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
|
|
|
|
|
You could try these people[^]. They do a full RTF editor, and RTF to/from HTML conversion tools as well. We used a version of this in the past, and you can get source as well as a DLL. Still not cheap though.
|
|
|
|
|
Thanks Graham. I had come across that. As you say a bit pricey though. I use their SpellTime product in ED4W.
Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
|
|
|
|
|
Hi
I want to converet a bitmap file to a Indexed-palatte bitmap
How can I do this?
Thanks
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
Hi,
I have a form view class derived from CFormView. In this class I have a thread which does some processing for every 30 seconds and generates a status message which is of type CString. I need to show this message in the Status Bar. From within the form view class I am calling a method names UpdateOnlineStatusMessage in the Frame Window class which updates the status bar.
void UpdateOnlineStatusMessage(CString strMsg)
{
PANEINFOEX pex;
pex.iIndex = 0;
pex.strText = strMsg;
pex.iFlags = SBP_ID | SBP_TEXT;
m_wndStatusBar.SetPaneInfoEx(&pex);
}
Here m_wndStatusBar member that represents the status bar in the FrameWindow calss. I am getting an assertion while trying to access m_wndStatusBar member.
Can anyone please help me to solve this.
Thanks
Madhavi.
|
|
|
|
|
ledallam wrote: Here m_wndStatusBar member that represents the status bar in the FrameWindow calss.
Could you please show us! How do you connect the StatusBar member of MainFrame with m_wndStatus? i believe that the root cause of problem...
you can try this too ->
CMainFrame* pMain = (CMainFrame*)AfxGetMainWnd();
if(pMain)
{
PANEINFOEX pex;
pex.iIndex = 0;
pex.strText = strMsg;
pex.iFlags = SBP_ID | SBP_TEXT;
pMain->STATUSBAR_MEMBER-> or . SetPaneInfoEx(&pex);
}
"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
|
|
|
|
|
The status bar is a member of mainfrme class itself and the function that updated the status bar is also in the main frame, so I use it directly. I'll call the function that updates the status bar from my form view calss
|
|
|
|
|
ledallam wrote: PANEINFOEX pex;
pex.iIndex = 0;
pex.strText = strMsg;
pex.iFlags = SBP_ID | SBP_TEXT;
m_wndStatusBar.SetPaneInfoEx(&pex);
Are you using your custom CStatusBar Class. as i couldn't found SetPaneInfoEx and PANEINFOEX in My Local MSDN Copy (APril2004)!
"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
|
|
|
|
|
Yes I am using custom CStatusBar Class.
|
|
|
|
|
ledallam wrote: Yes I am using custom CStatusBar Class.
Then Please list the code of that Custom Function
"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
|
|
|
|
|
|
Dear Friends,
I got the solution.
I just run E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat before compiling that c++ project.
It sets all required env variables and other things, now my c++ code get compiled from the command line.
Thanks to all my friends who try to help me.
Sachin Gedam
(Software Engg.)
Pune India
|
|
|
|
|
In WinXP SP2, there is a service called "DCOM server process launcher" run via svchost.exe. Today I noticed in Process Explorer that there is a "iexplore.exe" process running as a child of this svchost.exe, and tracking back how I started this instance of Internet Explorer, I had clicked on "2 new email messages" in the MSN Messenger (6.2). This is very interesting and I dont know why internet explorer does not show up as a child process of MSN Messenger itself. Anyone any ideas?
I was curious, I then attached windbg to this svchost.exe and put a breakpoint on NtCreateProcessEx, and you know what, the breakpoint is hit even if I start IE from the Windows Explorer shortcuts. Infact, the breakpoint is hit for every process that I start from windows explorer. The difference, however, is that the process is still created as a child of explorer.exe and not as a child of svchost.exe when I start from Windows explorer.
The questions I have are:
1. How exactly does this DCOM server process launcher work?
2. How do you communicate with it to start a new process?
3. What decides on who is going to launch the new process? svchost or calling process?
I'm not sure if this is good forum to ask this question, if it is not and you know an alternate forum, please let me know.
thanks!
--s
|
|
|
|
|
that confused me too,have you got the answer?
|
|
|
|
|
Hi All.
If I create a Panel, then we got a white line that distinguish your Menu and the Panel.
Now my question is, Can I get rid of this White line? If NOT then Can I change the color of this line to any other color?
Thanks and Best Regards.
PanB
|
|
|
|
|
I don't really know what you mean by panel. I think it is the toolbar that you are talking about. Well, the white line is part of the toolbar. It is the non-client area of the toolbar. You can derive a class from CToolBar , and handle the WM_NCPAINT message in it, and practically do nothing in the function. Hence the white line will not be seen; instead, the window in the background will show, which is definitely not wanted.
You can:
Derive a class from CToolBar . e.g, "CMyTool". Handle its WM_NCPAINT message and do nothing in it.
Derive a class from CDialog . e.g, "CMyChildDialog". Give it child style, no border, no caption bar.
Create the toolbar as a child of the CMyChildDialog .
Then create a member variable of CMyChildDialog in CMainFrame , and handle CMainframe's OnSize() function to size the CMyChildDialog dialog to the top of the window, about 24 pixels height. You will also need to handle the toolbar button messages in the CMyChildDialog class, and route the messages to the right window.
Following the above difficult-to-follow guidelines, the white line can be removed.
But still the info you have given is not enough.
I created the toolbar dynamically using AddBitmap() and InsertButton() etc.
this is this.
|
|
|
|
|
Khan.
Thanks for your suggestion and time.
Please go through following steps to have actual feeling of the problem, and if any further information required, please let me know.
To get a snapshot of the actual problem, please follow following steps...
1. Go to http://www.easysnaps.com
2. Click on "Search"
3. Type "wxwidgets issues"
4. You will get the required picture
5. Problem area is highlighted in Red rectangular frame.
Thanks and Best Regards.
PanB
|
|
|
|
|
I am sorry, I have never used wxWidgets before.
However, it could be that the child dialog has its border set to some weird color. As there are no panels in VC that I know of, so I don't think I can help more.
this is this.
|
|
|
|
|
Khan.
Not at all an Issue.
Actually, I am also an MFC developer, but curremtly working on wxWidgets.
Thanks a LOT for your time and support.
Keep up the good work.
Thanks and Regards.
PanB
|
|
|
|
|
Hi All.
I have a simple problem but it seems to me that the solution is not so simple.
Lets says I have a.exe and b.exe running.
If I endtask a.exe from Task Manager, I would like to have b.exe to be killed automatically and Vice versa.
Thanks and Best Regards.
PanB
|
|
|
|
|
Hi,
Check this[^]
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
PanB wrote: If I endtask a.exe from Task Manager, I would like to have b.exe to be killed automatically and Vice versa.
Actually it very tough Task.. As when you forcly Kill process through TaskMgr it doesn't send WM_CLOSE/WM_QUIT message, it just remove the resource that needed by process to live.. anyway these are some link, may be from there you find some thing that can help you
Is there anyway to handle the forced exit of an application by task manager?[^]
"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
|
|
|
|