|
When I use unicode in my CRichEditView based class I can input Unicode characters only from keyboard, and when I try input its by function SetWindowText every character, which takes code after FF, printing as two different character, how I can correct this.
|
|
|
|
|
Hi
I have asked this before and i got som answers, Thanks
I will send a stored procedures to the Sql server with ADO, the stored procedure will have som parameters like this:
_bstr_t bstrCreate ( L"Create proc AdoTestA "
L"as "
L"Declare @pkMbtID varchar(50),"
L"@MbtType varchar(50)"
L"INSERT INTO MBT (pkMbtID, MbtType) Values (@pkMbtID, @MbtType)"
L"return");
It seems unnecessary to send the parameters with create parameter or refresh after sending the stored procedure.
Is there a way that i can invoke the parameters direct into the stored procedure abow.
Or isn't that possible?
/Bigge
|
|
|
|
|
I have CEdit derived class, in wich I want perform some actions when caret position changes. How I can notify this happend?
|
|
|
|
|
Hi,
I need help to load a third party DLL in my program. This DLL is not registring through regsvr32.
|
|
|
|
|
For starters, look up LoadLibarary() and GetProcAddress(). If you're trying to use COM objects that are in the DLL, but aren't being registered properly, then you'll need to contact the author of the DLL.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
Can you explain me a little about LoadLibrary. coz I don't know any functions in that DLL
|
|
|
|
|
LoadLibrary, just load's the dll, so you can call functions in it.
You need to have a function prototype to call a function in a dll.
Lets make a function that will register a com-dll (just like regsvr32.exe does):
typedef void (*f)(void);
BOOL MyFuncCallsADLL(TCHAR* szDll)
{
f pf; // our function pointer
HINSTANCE hDll = LoadLibrary(szDll);
if(hDll == NULL)
return FALSE; // we couldnt load library
//get function address
pf = (f)GetProcAddress(hDll, _T("DllRegisterServer"));
if(pf == NULL)
{
FreeLibrary(hDll);
return FALSE; //we couldn locate the function
}
//lets call that method
pf();
FreeLibrary(hDll);
return TRUE;
}
|
|
|
|
|
I recently installed MDAC 2.6 and since have been unable to set up connections to either Access or FoxPro databases. I did install the Jet drivers afterward since they are not included in the MDAC installation. Does anyone know of a way to 'roll back' an MDAC installation.
MS has a program called ComCheck which is supposed to do this. It is supposed to have an option to "Reconfigure MDAC" on the file menu. Funny it isn't there!
Thanks,
ed
|
|
|
|
|
Hi there !
I have a somewhat large project, which consists out of 5 DLLs and an EXE.
Everything is compiled with MULTITHREADED DLL RTL, and exactly the same settings.. I am using Visual C 6.0 SP5 ( and V C 7.0 BETA 2 which exhibits the same behaviour )
Now I do the following: BATCH BUILD-> Build all Debug COnfigs:
Engine.dll / Debug
Support.dll / Debug
ModuleG.dll / Debug
ModuleS.dll / Debug
Game.exe / Debug
The 5th DLL is a 3rd party one which is also in debug mode ( mswin-ruby16.dll ( RUBY Scripting language )
Ok now I start my program, but it does not work ( It seems to have some errors in the scripting language interpreters.... it just doesnt execute script code ...)
NOW i do exactly the same thing again
Batch Build / all Debug configs etc ....
AND NOW THE THING WORKS !!! Perfectly smoothly ....
I am out of clues, basically every second build of my game works fine, the others not.. There is not a single change in build configuration I checked and double checked for that, the source code stays the same to the last point !!!! ( There are also no dynamic changes to the code, like vc macros (post build,pre link etc)
So no changes at all... Every sceond build works... but sometimes it's only the third one....
..
Any idea what that could be ? Since VC7.0 has the same behaviour i think it has to be something that I am doing...
|
|
|
|
|
PS:
Code AND Build config stay the same...
And it does not matter if i do Batch Build REBUILD ALL (the marked debug configs) or just a normal BUILD...
Thanks
|
|
|
|
|
Here's a 'hey that sounds like...' response which may or may not be of any use.
On my 98 machine, which has run afoul of an attempt to roll back an IE5 install, Internet Explorer will not start the first time. I 'end task' with TM, then start it again, and it works. Been like that for months. The odd numbered attempts most often fail.
There are some other oddities with this machine (er, as you might expect with yours truly bonken its koppens) but I'm thinking your situation might be related - maybe some automation problem.
Have you tried this on a second machine?
|
|
|
|
|
When I press say a button, the program executes this piece of code
ShellExecute(this->m_hWnd,"open","site.html",NULL,NULL,SW_MAXIMIZE); to open a html page named "site.html". Ok it opens! I push another button that uses the code ShellExecute(this->m_hWnd, "open","site2.html",NULL,NULL, SW_MAXIMIZE); to open "site2.html". I would expect to open another window to display the second page, but NO, it uses the same window, and so i lose the info on "site.html". So how can I open TWO windows instead of one?
Hoping this is not a stupid question or an unsolvable one!
REGARDS!
|
|
|
|
|
ShellExecute(m_hWnd, "open", "iexplore.exe", "site.html", NULL, SW_MAXIMIZE);
could be one option. I will look for better solutions.
-- Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Run a new instance of IE. Then call your shellexec. The file usually opens in the latest instance of ie. you might need to pause a bit to let ie start.
|
|
|
|
|
This is only true if you have reuse explorer windows option turned on in the internet options property pages of IE.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Hey, I need help...Up until now, I've only programmed DOS-console programs in C++, but now I have a request to make one in Windows interface...I.E. buttons, text boxes, etc (like Visual Basic programs). I have no idea how to start, it seems to be completely different. Can anyone give me some starters/recommendations/links to tutorials? Any help would be appreciated. Thanks =)
Dave
|
|
|
|
|
Lots of late nights for you!
Ok - I wish someone had told me this 4 or 5 years ago.
To get started with Windows and C++, your looking at three areas.
SDK style, ATL, or MFC.
SDK - right the apps at the window API level. This is the old way of doing things, but sometimes its the only way. You get really good feel for how windows works at this level, but loads of coding is needed.
ATL - If you want to write COM objects, activeX controls an component tyoe things that you can plugin to other apps easily, while having a smallish foot print this is your chap.
MFC - A big class library for doing all things windows. Its designed to get you un and running quickly, with good windows apps, allowing you to fairy easily fill in the bits specific to your app. Great for fully blown stuff, that has documents. Its the kind of thing you would write a word processor with, or a CAD program with. A good book for getting started here is MFC From The Ground Up by Herbert Schildt. You will qucikly out groud it, but stops you from falling into pitfalls.
You will probably decide on one, but end up learning all three. That may sound like a pain, but you will get to learn just how rich windows under the hood.
Giles
|
|
|
|
|
Is it possible to send as parameter to template a other template function ?
template< typename T >
T add( const T& a, const T& b )
{
return a + b;
}
template< class T, class O >
void Calculate( T& rlh, const T& rrh )
{
for( int i = 0; i < sizeof( T ); ++i )
{
rlh = O< T >( rlh[ i ], rrh[ i ] );
}
}
and use of Calculate template function
const TVector< TYPE >& operator += ( const TVector< TYPE >& rv )
{
Calculate< TVector< TYPE >, add< TVector< TYPE > > >( *this, rv );
return *this;
}
|
|
|
|
|
The effect you're after can be achieved by means of template template parameters, i.e. parameters of a template declared to be template classes themselves:
template< class T, template <class A> class O >
void Calculate( T& rlh, const T& rrh )
{
for( int i = 0; i < sizeof( T ); ++i )
{
rlh = O< T >( rlh[ i ], rrh[ i ] );
}
} The parameter template <class A> class O is required then to be a template. Note that the particular A used for the declaration is immaterial: it's only there to signal that O is a template. In fact, you can just write it down like template <class> class O . Later in the code you specify the way in which O is to be instantiated (in your example, as O< T > ). Using template template parameters, your operator += is written like this:
const TVector< TYPE >& operator += ( const TVector< TYPE >& rv )
{
Calculate< TVector< TYPE >, add >( *this, rv );
return *this;
} The bad news is that, to the best of my knowledge, MSVC++ does not support template template parameters, so you'll have to look forward to MS guys deciding to put their compiler up to date (maybe VC.NET?).
You might like to go to the Comeau C++ Template FAQ for further info on this and other aspects of C++ templates. Also, a guy named Andrei Alexandrescu is lately doing some amazing things with template template parameters and has just published a book entitled Modern C++ Design: Generic Programming and Design Patterns Applied discussing these techniques. Check the free excerpt available on the book's web site.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi all,
I wanna create setup disk of my program in VC++,
I used of InstallShield in Tools menu in VC++,
In my program i used Crystal Report ActiveX ...
And InstallShield added ActiveX automatically to setup disk, now setup disk is ready and will run in my computer, but when i run it in other computer, windows indicate to me error: "Can not move Cry32.ocx !!!"
So, what is my wrong ??????????????
Please help me ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I don't have a direct fix for your problem, but try using a different setup program.
http://www.jrsoftware.org/isinfo.htm
The best thing about this one is that its really well documented, and easy to use. Installsheild is frankly a pain.
INOSetup is totaly free. But wait theres more : there are free third party tools to use with this setup program to make your life even easier.
Your problem sounds a little odd. Did the other computer already have a version installed? If so, the setup program should be able to add it to the list of files to be undated on rebooting, if the file was in use. I would not have thought this was the case. What does the docs with Crystal Reports say about redistributing the file? I thought to use CR, you had to install the complete package with your system. So you would need a fully installed copy on the other machine, rather than just a few of its controls.
Giles
|
|
|
|
|
First check the file group Installshield made, make sure the correct files was placed there. Make sure the settings are correct, as in install newer version or date, etc.
If everything seems okay then check the client, make sure the correct file was indeed installed. Make sure it was registered properly.
If you need assistance check www.installsite.org, or Installshield at http://support.installshield.com/
|
|
|
|
|
I have to throw in my two cents on this again.
Lose InstallShield - it's an overpriced, poorly documented piece of crap.
Think about it - they offer training seminars, etc, for a price. Probably a big piece of their business. Do you really feel that an install program should require this level of training? The only reason it does is because it's such a lousy product to begin with.
Use Inno - it is superior to InstallShield in every possible way - not least it's price. Support is available through newsgroups on Jordan's site if needed, but frankly it's so easy to use and so well documented I've never had a problem with it.
I also recommend using TafWeb's 'ScriptMaker' - a 3rd party GUI that makes Inno a real snap to learn and use. There's a link to it on Jordan's site.
Dave R
|
|
|
|
|
it's an overpriced, poorly documented piece of crap.
I'll agree that Installshield is overpriced. However, how can you say it is poorly documented? How many books are published covering Inno? Three that I know of for Installshield and more on the way.
Support is available through newsgroups on Jordan's site if needed
Installshield also has newsgroups and a well maintained information site at www.installsite.org as well as the Installshield support site.
they offer training seminars, etc, for a price
Oracle offers training class for their products, as due many other companies. Is this reason enough to switch? What is the problem with offering training for their own products? I would rather attend a class given by the people who wrote it than some training company employee who read the documentation the night before the class.
using TafWeb's 'ScriptMaker' - a 3rd party GUI that makes Inno a real snap to learn and use.
With Installshield you need nothing else to learn and use the it.
I've said it before on this subject, most opinions of your nature come from one who is uninformed and has not taken the time to learn the tool properly.
|
|
|
|
|
How many books are published covering Inno? Three that I know of for Installshield and more on the way.
I'd say that if anything that just reinforces my point. Personally, I have better things to do with my time than read three books on how to use an installation tool.
Oracle offers training class for their products, as due many other companies. Is this reason enough to switch?
So you compare the complexity of InstallShield to that of Oracle's products?
I've said it before on this subject, most opinions of your nature come from one who is uninformed and has not taken the time to learn the tool properly.
Right. Any opinions that differ from your own are uninformed.
Grow up.
Dave R
|
|
|
|
|