|
Hi All,
I am using VC++ 6.0. I am using ODBC to connect to DB2 database. I wonder if there is any driver(connector) dedicated for VC6.0.
Thanks
Felix
|
|
|
|
|
Hi ALL,
I am using Visual C++ 6.0 studio. I want to render processing result data graphically by showing a flash to the user with FLEX technology. I wonder if this is possible.
Thanks
Felix
|
|
|
|
|
Yes it is possible. You can use Adobe Flash Player ActiveX control in ypur VC++ project. You can make use of events and methods provided by Adobe Flash Player control to communicate between C++ and the Flash file (Which is the result of compiling your Flex project).
|
|
|
|
|
in addition to what is said above, don't wonder to hear that you can call functions in your swf flash movie from C++, and events dispatched from swf can be handled in c++, using the interfaces provided by flash player activex.
|
|
|
|
|
hi
i need to know what is this class for and how can i use it. i need a simple sample plz.
thx
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
hi
thank u for the link. so it's not a separate functionality. i may not use it and still have its functionality by joining the dockable panes by hand in runtime. right?
if so, this is not what i'm looking for. i need the tab inside the pane. in another words i'm looking for a two-page pane. only one CDockablePane includes two pages of items which are selected with a tab control.
what is the best method to implement it?
|
|
|
|
|
Hi,
Please tell me how can i create a forward rule in Microsoft Outlook programmatically using MAPI.
Thanks.
|
|
|
|
|
How to Creating an action for a rule on MSDN: http://support.microsoft.com/kb/177210[^]
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
Thanks Rajesh, I used your suggested code but it having some issues. I am using this code in add-ins application for MS-Outlook.
After using this code my add-ins disables. I did some research on code and find out that if i comment
"hr = HrStringToAction(lpSession, lpFolder, lpszAction, lpActs, &lpActs->lpAction[lpActs->cActions-1]);" code line then my add-ins enables but it will not work.
Please tell me why this "HrStringToAction" function disables my add-ins. Is any thing which i am missing. Please tell me.
Thanks.
|
|
|
|
|
Hi Jayprakash, Unfortunately I've no further idea of this. You could start a thread in the MSDN Visual C++ forum, citing the example and your issues with it. That, I think will get you a quicker reply.
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
hello guys... im trying to make a dll which has some functions. Now when I access this dll in my mfc app
- I want to pass a control variable (say Listbox) to a function in this dll
- which, in turn, adds some items to the list box.
Now question is: when I declare the function (with argument CListBox) in dll, it gives error saying Undeclared Identifier along with othrs. What should I do? Am I missing some header file thnx
|
|
|
|
|
That's a very bad way to design your app. You shouldn't let your dll have access to UI elements from your application. Instead, the dll should provide a function that returns a list of string, that your application can use to populate the list box.
You should really learn to separate UI from logic, otherwise your code will soon be a total mess.
|
|
|
|
|
I had this in my mind but was still confused whether to use this technique or not (As I am still new to professional envirnoment). Thanx to confirm that I need to change my approach.
|
|
|
|
|
The correct way would be to have a function in the DLL which will send the app the list of strings.
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
Hello,
I have the same problem
I'm using in a source file and i want to use a progress bar to mark a download.
How can i declare the progress bar existing in mfc to be able to use it in the function?
thx
|
|
|
|
|
You have a source file where some operation happens, and that should update a progress bar in the UI, right? In that case, you could do a PostMessage with the current progress as LPARAM, handle the message in your main window and then update the progress bar there.
If I got something wrong, please explain in detail.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
hi
i need to create a memory dc with a specified dimensions. one way is to select a created or loaded bitmap in it which has the desired dimensions. is there any way else?
thx
|
|
|
|
|
The HDC is just a drawing interface to 'something'. The DC itself does not have a size. It is usually backed by a window, a printer, or a bitmap. You always have to retrieve the size of the underlying object that backs the DC. This can be the client are of the window, the whole window, the size of the paper in your printer, the size of the bitmap or whatever. If your memory DC is backed by a bitmap, then you are right, you have to select another bitmap to the DC to change the size.
|
|
|
|
|
thank u
i did this and the problem was resolved:
Ct2View::d_tmpDC.CreateCompatibleDC(&dc);
bitmap.DeleteObject();
bitmap.CreateCompatibleBitmap(&dc, Ct2View::d_itemSize.cx, Ct2View::d_itemSize.cy);
Ct2View::d_tmpDC.SelectObject(&bitmap);
|
|
|
|
|
Hello Friends
I am creating a application in which user can choose any image format and also can choose one color of that image that he wants Transparent.Now ,to do this,I am using bitmap class of GDIPLUS and getting its height and width And matching choosed color with all image colors and If matches then setting tht pixel alpha to 0.But this is working fine for tiff file and for some bmp not for all bmp.Some bmp colors are coming irregular.Is there any other Way to set transparency of Images?
Thanks & Regards
Yogesh
|
|
|
|
|
If the image is originally rendered with anti-aliasing, the simple replacement of colors will never look good. You can look at the hue of the colors to see if they are fairly close, and do some adjustments to the alpha channel according to that. The easiest thing would probably be to find an image library with this feature.
|
|
|
|
|
Thanks for your Reply.
Can u please suggest me some Library or is It possible with GDI plus?
Regards
Yogesh
|
|
|
|
|
I make use of AfxBeginThread to kick off an mfc dialog that does some work for me. Form is:
AfxBeginThread(UI_proc, &threadData, Priority);
My goal is to create a UI thread that will be able to handle messages. In my testing, I clearly see messages delived to this dialog (wm_paint, etc). In migrating the code to another application, I was reading about AfxBeginThread. In the help, it shows two forms for the call:
<br />
CWinThread* AfxBeginThread( <br />
AFX_THREADPROC pfnThreadProc, <br />
LPVOID pParam, <br />
int nPriority = THREAD_PRIORITY_NORMAL, <br />
UINT nStackSize = 0, <br />
DWORD dwCreateFlags = 0, <br />
LPSECURITY_ATTRIBUTES lpSecurityAttrs = NULL );<br />
<br />
CWinThread* AfxBeginThread( <br />
CRuntimeClass* pThreadClass, <br />
int nPriority = THREAD_PRIORITY_NORMAL, <br />
UINT nStackSize = 0, <br />
DWORD dwCreateFlags = 0, <br />
LPSECURITY_ATTRIBUTES lpSecurityAttrs = NULL );<br />
The online help clearly indicates that the first version is for a worker thread while the latter is for a UI thread. My question is why does my code still receive UI events? Luck?
Charlie Gilley
<italic>You're going to tell me what I want to know, or I'm going to beat you to death in your own house.
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
The first version only takes a function as its first parameter.
The function is simply runs in a new thread.
The second version takes a CWinThread derived class.
Which means you're running a whole new application in a new thread.
You must be calling it differently.
Do you have a different dialog showing up?
If so how are you calling it?
|
|
|
|