|
What conflict?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Actually i want to ask that can it cause any coflict...
in my situation:
Some times i am not able to use the method of the interface object.
like application doesnt acknowledge the object and returns without performing the task.Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Ash_VCPP wrote: Actually i want to ask that can it cause any coflict...
I suppose not (but, without code, is a blind guess).
Ash_VCPP wrote: Some times i am not able to use the method of the interface object.
like application doesnt acknowledge the object and returns without performing the task.
What do you mean with: "application doesn't acknowledge the object?". Do you get errors?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Ok let me explain you the problem in detail...
i am using msscript.ocx to get script support, now i am using one com dll and using its interface and adding interface object in script object, now script is using these object without initializing it, now i have same application running multiple times on same machine repeating the process, but some times vbscript doesnt acknoledge the interface objects.
Example:
m_ScriptObj.AddObject("DataIn", DataIn, false);
m_ScriptObj.AddObject("DataOut", DataOut, false);
m_ScriptObj.AddObject("Parser", Parser, false);
m_ScriptObj.AddObject("Setting", Setting, false);
now suppose i am using DataIn object inside my vbscript, and here comes the Inconsistent behaviour.Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Unfortunately it looks like there is no documentation about the script control (or I am not able to find it...). I have used it in the past, but I never needed the AddObject method.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all,
I want to write a code in which i want to change the icon of an exe i.e user will provide a icon at runtime and when he will click on change button the icon should be the new one....
How can i do this...
Thanks in advance
|
|
|
|
|
Try with UpdateResource[^]. Please note that using this will not actually update the already loaded resources in memory (meaning using UpdateResource to change the icon inside the exe will not magically change the icon you see in the top-left corner of the application's window for example to the new one, you will have to do that yourself, maybe by broadcasting some message to your windows to re-load the icon or such), however if you then quit and re-start the program the new icon should appear (also the new icon should be displayed in explorer and so...you might also need to do something to make explorer notice the change, am not sure about that...). > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
I dont know how to do this but ToDoList[^] does that during Time Tracking. Maybe you can look at its source and figure it out.
-Saurabh
|
|
|
|
|
Hi all
How can i Insert data of more than 4000 characters in clob datatype in oracle database?
I use this query to insert data.
INSERT INTO testing VALUES(utl_raw.cast_to_raw('SomeDATA'));
Then i am getting error
OraOLEDB Error: -2147217900
ORA-01704: string literal too long
IDispatch error #3092
Please help me
|
|
|
|
|
MsmVc wrote: INSERT INTO testing VALUES(utl_raw.cast_to_raw('SomeDATA'));
Have you tried replacing this with a string literal to see at what point it fails, something like:
INSERT INTO testing VALUES("12345678901234567890"); "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
|
|
|
|
|
Thanks for reply
i try to this and i found when data is more that 2000 thousand then i am getting error.
INSERT INTO testing VALUES(utl_raw.cast_to_raw('0x151c2f'));
ORA-06502: PL/SQL: numeric or value error: raw variable length too long
ORA-06512: at "SYS.UTL_RAW", line 224
|
|
|
|
|
See if the first two results from this search are of any help."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 guys,
Looking for some help...
In my application using VS2008 (MFC 9.0) + SP1, i encountered an error and i felt that it is of the MFC/Framework.
I am giving a very simple scenerio, and i hope amy body may reproduce it easyly.
Follow these steps: -
1. Create a new MFC Application Project.
2. The type i choose is MultiDoc Application with Doc/View Support and Office Project Style and Ribbon Menu
Here my View is derived from CScrollView.
Now i Run the Application and changed the theme, say to Silver and now i hibernated the PC. After Starting the PC i got that the application is in the default theme (BLUE). However as i checked the selected style in the menu, its still the Silver.
I an expecting any boddy will help me soon.
Regards
HarshHARSH
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
|
|
|
|
|
The CMFCVisualManagerOffice2007 reset any style to its default
const CMFCVisualManagerOffice2007::Style c_StyleDefault = CMFCVisualManagerOffice2007::Office2007_LunaBlue; value after the restart...
It would be not the case
when you would set your own (derivated) VisualManager
with the overwritten function virtual void OnUpdateSystemColors()
|
|
|
|
|
Thanks Eugen,
I'll try n let you know..HARSH
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
|
|
|
|
|
Hello,
I'm checking for the "SingleInstanceApplication" thro' EnumProcessModules()and if the process is available then call the TerminateProcess().
I'm looking for an help on SetForegroundWindow() of the application. Is there any method in CWinAppEx for Setting Foreground Window of the application when minimized or starting an application from the shortcut.
Thanks in advance,
Mayur M
|
|
|
|
|
Use a named Mutex to check for single instance.
The CreateMutex will create a mutex for the first instance.
For all subsequent instances CreateMutex fails with an error ERROR_ALREADY_EXISTS .
CWinApp has a m_pMainWnd member of type CWnd* .
There are functions available like CWnd::SetForegroundWindow , CWnd::BringWindowToTop , CWnd::ShowWindow etc. which will help you restore a window and bring it to the foreground.
From the second instance of your application send a custom message using RegisterWindowMessage so the first instance can respond to it and then terminate the second instance.
|
|
|
|
|
It may not be a good idea to enumerate for a process and terminate it if the intention is to avoid multiple instances. May be you can take a look at the following article: Avoiding Multiple Instances of an Application[^]
Regarding SetForegroundWindow(), if you have a pointer to the main window (or any top level window), you can call it like pMainWnd->SetForegroundWindow().
|
|
|
|
|
As others have pointed out you should use Mutex to avoid the multiple instances.
Here is code snippet how it will look(not tested)
HANDLE hMutexOneInstance = CreateMutex(NULL, FALSE, _T("Global\\MutexToAvoidMultipleInstances"));
DWORD dLastErr = ::GetLastError();
if(dLastErr == ERROR_ALREADY_EXISTS)
{
CWnd * pPrevCWnd = PreviousInstance();
if(pPrevCWnd != NULL)
{
need to check more :)[/edit]
LaunchPrevInstance(pPrevCWnd);
}
else {
AfxMessageBox("Only one instance is allowed.");
}
return FALSE;
}
Regards,
Sandip.
modified on Tuesday, February 16, 2010 3:34 AM
|
|
|
|
|
Thanks for your valuable reply...
By the way, I got how to avoid multiple instances. But the problem is to restore the minimized or inactive window, which is already running.
The functions like ::BringWindowToTop(), :: SetForegroundWindow(), ::ShowWindow() needs HWND value as parameter. But the problem that i don't have any HWND value ,because we are not using any CFrameWnd derived class.
Could you please suggest me how to show my minimized or inactive application window.
Thanks in advance...
|
|
|
|
|
Hello Sirs
how to insert text into an avi file?
there's a filter that does this, aware motion ... something,
but i wanted to know how to do something like that,
any help would be very ... um, Confused ... helpfull
thanks Failure is Success If we learn from it!!
|
|
|
|
|
I'll assume you mean you want to do that programatically using (V)C++, otherwise you wouldn't be asking here. Imho take a look at writing directshow filters[^] for starters, i hope that will help. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Thanks for your replay !
i need to split I frames and P-frames in avi file and how to insert text into avi file.So please help me .. Failure is Success If we learn from it!!
|
|
|
|
|
I don't know what I and P frames are, sorry, i'm not much into video editing in details. To insert text i would write my own filter which takes the incoming frame, writes its text on it and then passes it along the graph (so it would have 1 input pin for incoming video frames and 1 output pin which passes the frame along after writing text onto it), i think video frames are (usually) passed as DIBs (Device Independent Bitmaps), so you should be able to use GDI (or GDI+) functions to write text onto these before letting them continue their journey.
[edit] And of course, insert my filter into the filter graph by building the graph "manually". [/edit]> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
modified on Tuesday, February 16, 2010 6:15 AM
|
|
|
|
|