|
Well, part of this is down to MS's original confusing name for VC++ 7.x, i.e., Visual C++ .NET 2003 - which means it's Visual C++ that subsumes MFC, ATL, etc. plus the new .NET.
However, in the current context it would be clearer to refer to perhaps VC++ 7, 8 or 2003, 2005.
Kevin
|
|
|
|
|
Wheatbread wrote: Any ideas on this or other porting issues we may run into would be
appreciated.
Google on "breaking changes in visual c++". You'll see a few useful MSDN links. Ditto "Breaking chages in MFC."
Kevin
|
|
|
|
|
hello,
I created a win32 project(precompiled headers, console application). This was created to create a service( for which i used SERVICE_TABLE_ENTRY, SERVICE_STATUS, SERVICE_STATUS_HANDLE, etc... required structures and methods).
Environment used:
Windows XP, VC++.Net2005.
Should work on:
I want to make this exe to run on windows 95,98, XP, 2000 and Vista.
my stdafx.h file contains:
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
#pragma warning (disable:4430)//... i added this, since i was getting this error. and in msdn this //was given as its solution.
To this project, i have added two more files:
1) USBActivity.h
2) USBActivity.cpp
In USBActivity.cpp the hierarchy of headers included is as follows:
#include "stdafx.h"
#include <initguid.h>
#include "stdio.h"
#include <setupapi.h>
#include <dbt.h>
#include "afxcmn.h"
#include "cfgmgr32.h"
#include "Blowfish_Data_FileEncrpt.h"
#include "USBActivity.h"
The project properties are set as: Use windows Standard libraries, WIN32;_DEBUG;_CONSOLE as preprocessor definitions, Basic Run-TimeChks: Both (/RTC1, equiv. to /RTCsu) , RunTime-Library --> Multi-threaded Debug (/MTd), Use Precompiled Header (/Yu), Linker+AdditionalDependencies-->setupapi.lib.
I am getting following build errors:
Compiling...
stdafx.cpp
Compiling...
Blowfish_Data_FileEncrpt.cpp
DataSentinelService.cpp
d:\microsoft visual studio 8\vc\platformsdk\include\commctrl.h(29) : error C2146: syntax error : missing ';' before identifier 'HRESULT'
d:\microsoft visual studio 8\vc\platformsdk\include\prsht.h(97) : error C2065: 'CALLBACK' : undeclared identifier
d:\microsoft visual studio 8\vc\platformsdk\include\prsht.h(97) : error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier
d:\microsoft visual studio 8\vc\platformsdk\include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation
DoubleBuffering.cpp
SHA.cpp
USBActivity.cpp
d:\microsoft visual studio 8\vc\platformsdk\include\commctrl.h(29) : error C2146: syntax error : missing ';' before identifier 'HRESULT'
d:\microsoft visual studio 8\vc\platformsdk\include\prsht.h(97) : error C2065: 'CALLBACK' : undeclared identifier
d:\microsoft visual studio 8\vc\platformsdk\include\prsht.h(97) : error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier
d:\microsoft visual studio 8\vc\platformsdk\include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Generating Code...
DataSentinelService - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I guess the error is because of :
--> calling a function in an SDK header file that is currently not supported in current build environment.
Could anybody help me out... in fixing this problem.
I have also seen the project given at the following link: http://www.codeproject.com/system/RemoveDriveByLetter.asp?df=100&forumid=294340&exp=0&select=1822184&tid=1815457#xx1822184xx
Here, it is given in vc++ 6. and when i compared the build environment everything was same.
In order to enumerate enumerate all the USB devices connected to PC, using a windows service... i have to use setupAPI in order to get setupDiGetDevClass etc methods.
I also tried with including windows.h file in stdafx.h. but it was also not helpful. since was included by-default. And on including it again i am getting the following error:
d:\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Is there any other alternative?
Thanks
Anee
Anee
|
|
|
|
|
are you sure setupapi is supported in windows95?
don't forget that if you want the same exe to run on all versions of windows you mentioned, WINVER must be set to the oldest version of sdk (in your case, win95). and there may be the origin of your problem. list of correct values for WINVER must be in SDK docs.
when i encounter a problem like this i start from taking a look at where compilation error occured and then searching SDK headers for definition of types that seems to be 'undefined', looking for conditional compilation preprocessor directives around their definitions.
|
|
|
|
|
You're in the wrong forum. This belongs in the Visual C++ forum. Your post has nothing to do with the .NET Framework.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi All,
I am beginner to HTML and i was trying to implement frames in HTML file. I want to make frames in 2 rows. In first row there will be only one column and in second there will be 2 columns. I have written HTML code for the above as
<title>Test Frames
<BODY>
YOUR BROWSER IS SUPPORTED
</body>
I am not getting output with the above HTML code in required fashion. Is there any fault in above HTML file. Please help me out.
Regards,
Sunil Reddy
|
|
|
|
|
Hi,
Try this
hope this helps.
Greetings
Kaine
|
|
|
|
|
|
I am using a PropertyGrid control to expose the properties of a class. One of the class properties is an Image. When you click on the property in the PropertyGrid you get the error 'Object not set to an instance of an object'. I added the [Editor(typeof(ImageEditor),typeof(UITypeEditor))] attribute. When I click the Property I get the standard FileOpen dialog. Is there a way to get it to display the Resource Selector dialog as you would get if you used the actual properties window to edit the image
Alan Seedhouse
|
|
|
|
|
I have searched in google and also in MSDN and have consolidated some points. I would like to know whether any documents made by any of you for your projects. If there is one, please forward it to me. I would like to get PL/SQL Standards and also HTML Standards also. I have some documents with me already. I would like to get the ones that have been used in the project.
|
|
|
|
|
You can find what you're looking for on Microsoft's Patterns and Practices site in MSDN, specifically under the Application Blocks[^] section.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I don't have windows, but I have a theory for portable .net apps.
All libarys are set to local copy (= true)
Make a native image?
J
JoeJoe rules
|
|
|
|
|
did you mean 'do they (libraries) have native format'?
not, they don't. they are just .NET assemblies" wrapped in PE (portable executable) format.
if you are porting .net app, take a look at this: http://www.mono-project.com/ [^]
|
|
|
|
|
Hi,
i hope i'm posting in the right place.
i'm working on a User List in a gridview, where a user has a name and a password (and other infos). I've templated the password column to display [Hidden] as the display content, and on the EditTemplate i've bound a TextBox with TextMode set to Password. When i edit a row, i have an empty textbox. When i set the TextMode back to singleline, all is fine.
Any hint on what's going on would be appreciated.
Thank you !
|
|
|
|
|
I may have missed something here, but this sounds like it's behaving normally. What's the problem??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Well, in that case, i don't understand what a normal behavior is.
I'll try to rephrase what the situation is, sorry if i was unclear the first time.
I'll start by assuming the problem is not related to GridView and that may clear things up a bit. Say i have a DataBound TextBox on a Web Form (ASP.NET), the TextBox will display the content of the data it is bound to. Its the normal behavior of DataBound controls. Now, i want to have the same Data displayed in a Password type of TextBox, so that i only see Dots or Stars when the data is displayed. If i change the TextBox TextMode to Password, suddenly the content of the TextBox is empty, its display is blank and so on. I dont call this Normal Behavior. I wanna be able to Bind data that i consider sensitive and see some Dots or Stars in the TextBox display.
How this problem ties to Gridview is that if i Edit a row in inline edit mode, the TextBox with TextMode set to Password will not hold or display the sensitive information. If i change some other bound field and commit the changes to that Row, the sensitive information has been replaced with emptiness. And to me, this does not seem to be acceptable as normal behavior.
Thank you for taking the time to reply to me. This is really appreciated.
|
|
|
|
|
Password textboxs do this as normal behavior. Why? Because giving the length of the password is a hint to what the password is, or isn't, and even that the account has a password. Password textboxs shouldn't show you anything unless the user types something in it.
If all you're doing is showing the password as a string of "*", then why show it at all?
If your editing the password, then the box should be blank and there should be two boxes, the second box forcing you to type the same password again to avoid typos in the first box.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I can agree with you up to a certain extent.
The part which isnt solved on my side is, if i dont touch the password box, why is the Bound Field being cleared ?
I dont mind too much having nothing shown, but i dont want the old password to disappear. Also, there is another option that can apply which is already in use and accepted, its to display a fixed number of Dots or Stars that isnt related to the current password lenght. This at least can provide the clue that the textbox holds some information.
|
|
|
|
|
The solution would probably be to use a custom formattted column in the GridView that just shows "***********" no matter what the value is.
Another idea would be to just not retrieve the password from the database. Instead, use a dummy column to represent the password data and a add a custom formatted column to the Grid that just shows a string of "************" in place of DbNull values.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank You Dave,
Your input was really appreciated. I do not agree 100% with the way TextBox handles TextMode=Password but i have to live with it. Having TextMode=Sensitive would have been nice !! lolllllllllllllll
|
|
|
|
|
You could always make your own TextBox too...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Not a bad idea, i might think about it in the future, but time constraints on the current project prevent me from going that route !!!
Thanks Again !!
|
|
|
|
|
Isn't that always the case??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, in order to test my application on some other device I have created a .CAB to pass to some friend… but I have had some difficulty because if the PDA of the friend does not have the runtime installed and tries to install it from my PC, comes given the already present message of version in the system. What's the corrected procedure to execute? Naturally excluding the deploy from VS…
Alex
|
|
|
|
|
hello!
as we all know, .NET supports localized resources just fine. but when it comes to translation of thousands of strings in all these resource files -- it's pain without good tools that can automate collection of strings in one place for translation, and then distributing translated string back to localized .resx files (possibly creating files for new cultures and adding them to projects to compile).
similar approach is used in SharpDevelop project, but they do not publish the tool's sources, only describe its features and the process of localization. and it's easy to understand, why: this tool is fairly difficult to develop and almost anyone developing commercial software needs it.
and at last, this is my question: anybody knows of any tools (free or not) with similar features?
Alexei Adadurov
|
|
|
|