|
Thanks for your fast reply ,
but the code fails in the following line:
if ( 0 == VerQueryValue (pBuffer, _T("\\StringFileInfo\\040904B0\\ProductVersion"), &pvVersion, &uBufLen ))
is there something different when I use a german file?.
When I view the *rc file it looks like:
BLOCK "StringFileInfo"
BEGIN
BLOCK "040704e4"
BEGIN
(… all other values)
VALUE "ProductVersion", "1.0.0.1"
Perhaps I’ve to change the string from _T("\\StringFileInfo\\040904B0\\ProductVersion") to
_T("\\StringFileInfo\\040704e4\\ProductVersion").
It doesn’t work too – did I miss something?
Thanks again,
Regards
Armin Zürcher
|
|
|
|
|
hmm, I'd expect that changing the number to 040704e4 would make it work, since that is just the hex value of your language ID.
--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?
|
|
|
|
|
uh..
it was my fault, the right block header for the dll is 040704B0.
(040704E4 was the block header of the app)
Armin Zürcher
|
|
|
|
|
Hi !
I'm trying to catch a keyboard input (WM_KEYDOWN) in a CDialog box.
The OnKeyDown method works in a CView derived class, but not in a CDialog dervied class.
Could anyone help me about that ?
Thank you !
Damien
|
|
|
|
|
WM_KEYDOWN messages are directed to child window that currently has a focus, not to the dialog itself. Override PreTranslateMessage to handle keyboard in dialog class.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi there!!
I want to recreate a stored procedure when i pass it to the SQL server with ADO.
I found a example at MSDN, but its to much code. I wonder if there are any easier way to do this?
MSDN example:
_bstr_t bstrCreate ( L"create proc sp_AdoTest( @InParam int, "
L"@OutParam int OUTPUT ) "
L"as "
L"select @OutParam = @InParam + 10 "
L"SELECT * FROM Authors WHERE "
L"State <> 'CA' "
L"return @OutParam +10" );
_bstr_t bstrDrop ( L"if exists "
L"(select * from sysobjects where "
L"id = object_id('dbo.sp_AdoTest') and "
L"sysstat & 0xf = 4)"
L"drop procedure dbo.sp_AdoTest" );
_bstr_t bstrSP ( L"sp_Adotest" );
Conn1.CreateInstance( __uuidof( ADODB::Connection ) );
Conn1->ConnectionString = bstrConnect;
Conn1->Open( bstrEmpty, bstrEmpty, bstrEmpty, -1 );
// Drop procedure, if it exists & recreate it.
Conn1->Execute( bstrDrop, &vtEmpty, ADODB::adCmdText);
Conn1->Execute( bstrCreate, &vtEmpty, ADODB::adCmdText);
Thank all folks out there who taking the time to help me!!
|
|
|
|
|
You need to create the Store procedure in the SQL Server with ISQL,
Run the script, in ISQL, then grant the permits.
Please ask me.
Let me make a question. Do you need to create the Stored with ADO from your program?
Or you can do the stored previously?
Best Regards
Carlos Antollini.
|
|
|
|
|
I soloved the Problem now, thanks anyway.
Yes i need to create the stored Procedure inside ADO/COM object because theres no administration tools to the database, and the com object will change several times and then we send client application and object to consumers.
|
|
|
|
|
Since this is posted in the Visual C++ forum it is safe to assume you are using C++.
I am always curious as to why people who are coding in C++ would chose to use ADO rather than OLE DB or ATL OLE DB?
|
|
|
|
|
I have been trying to find VC++.NET OLE DB Unmanaged Code samples but cannot.
Can you point me in the right direction. I create a New OLE DB program with the wizard, it creates the OLE DB Consumer Template, but when it comes to saving the data I cannot figure out how.
Peace in Christ
Marco Napoli
http://www.ourlovingmother.org
|
|
|
|
|
What do you need?
Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I am looking for sample code on VC++.NET OLE DB Unmanaged code using OLE DB Consumer Tamplates.
The problem I am having so far is the saving. Below is the code I use to save.
CString mValue;
GetDlgItemText(IDC_EDIT_FIRST, mValue);
strcpy(m_pSet->m_First,mValue);
HRESULT hr ;
hr = m_pSet->SetData();
hr = m_pSet->Update();
When I trace the above code, I can see the new value in the m_pSet->m_First field, but neither the SetData() or the Update() save to the SQL Server Database.
Marco
|
|
|
|
|
Hello,
I have a status bar in which i want to place a progress bar in one of the panes.
For that I tried to get the size of the pane and so that i can create the progress bar in that place.
I created a string table entry in the name of the pane id, added it to indicators array and used *GetItemRect* of status bar to get the size of the pane. But the size of rect it returns is always 2,0,-17,-17. i dont know why.
Because of this size the progress bar is not showed properly. If i set the size manually - reasonable guess, the progress bar is shown.
Can some on please tell me what am i suppose to do???
Thanks for ur time.
Regards,
Ganesh.M.Ramaswamy
|
|
|
|
|
I have developed a Proxy server application listening on
a purticular port running on Win 2K .This applicaion
serves the request coming from client machine Browser
by reading the header.
I want to upload a file from Apple Mac through browser
to my application running on windows 2k.
Is there any method to solve this? .The Application
is developed in visual C++ using MFC.
Is there a component to serve the purpose? if there is
some component let me know how to use it
bgpandey,
|
|
|
|
|
Please, do not post the same question everywhere in different forums.
I'm not sure I understand your problem. If a file get uploaded with a webbrowser, there should be no differences wether it comes from a MAC or Windows...
If you have an exact problem, please write, then someone might be able to help you...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Try Software Artisans SAFileUp
i think http://www.softwareartisans.com
|
|
|
|
|
Here's a strange one for you avid programmers...I've installed VC++ 6 on a Windows NT 4.0 (SP5) machine. Aftering installing and opening a workspace, I noticed that the Class View is missing, I can't debug, and there is no color syntaxing for the code. You can compile, however, and execute code. I have never seen this problem before...has anybody else? I tried the MSDN knowledge base and a couple of reinstalls and reboots with no luck.
|
|
|
|
|
Check this registry key:
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++
You should see a FileExtensions value. Mine looks like this, after adding wmh and wmc so I could have these files c++ code show up as colorized and in the class view:
"cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;wmc;wmh"
If I were to nuke this string value, I would probably have the problem you have now, except I think I would still be able to set breakpoints.
If you don't see this for HKCU, check that HKEY_USERS\Default has this key.
HTH. Thanks to Benner for cluing me into this.
|
|
|
|
|
Hello,
I have to call system("umount /mnt"); from a program written under Linux SuSE 6.4. Before this will work I have to close all open filehandles (all but stdin/stdout/stderr of course). These files are opened usind STL and the "fstream" header file. Is there a command to close all still opened file streams?
Thanx in advance...
Greetz...
===================
-=[{Jçç}||7.ê.Q]=-
===================
|
|
|
|
|
I works on creation dll by the classWizardMFC (dll)
from type- MFC Extension DLL.
When I trys to use in my this project at another dll by attach his lib file and his header file to my project , if I use in his functions (as LMOpenDev()) I gets errors, as it:
--------------------Configuration: MyDLL - Win32 Debug--------------------
Linking...
Creating library Debug/MyDLL.lib and object Debug/MyDLL.exp
MyDLL.obj : error LNK2001: unresolved external symbol _LMOpenDev@4
Error executing link.exe.
Why ??? Who Can Help me ?? Please !!!
|
|
|
|
|
You can't use AFX_EXT_CLASS when you have MFC extension DLL linking to another MFC extension DLL.
KB article Q128199 has more info - especially item titled 'Limitations of _AFXEXT'.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
|
Hi,
At the beginning of my application, i declare a COleDateTime object like that:
COleDateTime Date1;
After, i have to compare other dates(Date2,Date3), and then change Date1, which is inialized firstly to 0, like that:Date1=Date2.GetDay()/Date2.GetMonth()/Date3.GetYear().
So, i don't know how i could modificate Date1 in this way, is anybody coule explain me how to do that?
thanks in advance.
gerald
|
|
|
|
|
You mean that you have a line like this in your program?
Date1 = Date2.GetDay()/Date2.GetMonth()/Date3.GetYear();
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
of course not, it's a representation of what kind of date format i want, for example, if date2=5/09/01 and date3=18/12/03 i want to do a sort of concatenation with the twice to have the result:5/09/03.
I hope you see now what i mean.
gerald
|
|
|
|