|
- Let Sign and Encrypt inherit from the same base class and prevent multiple attribute instances.
- Play around with accessebility (public, internal, private , etc) of the attribute definitions.
- Attributes really shine when they are applied to a concrete base class. Handle attributes in the default constructor. Here you can deal with all the detail .
top secret Download xacc-ide 0.0.3 now! See some screenshots
|
|
|
|
|
Can someone direct me to the location where I can find the ID's for the various edit control messages like: EM_EMPTYUNDOBUFFER and EM_CANUNDO?
Thank you in advance,
Eric
|
|
|
|
|
I open a C++ project, type in the messages/contants/etc I want, hover the mouse over them, and the IDE shows me their numeric value. If that doesn't work, I use cout to print them as ints and get them that way.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I only have C# available and can't open a C++ project.
Thanks
|
|
|
|
|
I didn't think that was possible. In that case, I guess MSDN is your best bet. If you don't have C++, you definately don't have the header files that define that stuff.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I have never created a C++ file. My visual developement environement is the "standard" edition which only includes a single language, in my case C#.
This "standard" edition is a "trial" version that comes with a set of books in local bookstores (just incase you are wondering).
I have searched MSDN and have only found descriptions and examples but no actual number ID's for the messages.
Thanks.
Eric
|
|
|
|
|
Two more suggestions:
1. Take a look at the Visual Studio 2005 Express Edition betas which are available for free public download. Downloading the Version for C++ should enable you to use the procedure Christian suggested.
2. If you've found the descriptions on MSDN, you should know in which header-files the messages are declared. To get the header-files, download the Framework SDK and install it (they should be included).
www.troschuetz.de
|
|
|
|
|
Stefan Troschütz wrote:
To get the header-files, download the Framework SDK and install it (they should be included).
I think he already got that one and that you actually meant the Platform SDK.
Best regards
Dennis
|
|
|
|
|
No, I meant the Framework SDK and thought it would be sufficient as MSDN states that it "includes everything developers need to write, build, test, and deploy .NET Framework applications."
I know better now
THX
www.troschuetz.de
|
|
|
|
|
Beringer wrote:
Can someone direct me to the location where I can find the ID's for the various edit control messages like: EM_EMPTYUNDOBUFFER and EM_CANUNDO?
You don't need to get Visual C++ just in order to find out those defines. As Stefan already mentioned the correct header files are documented in the MSDN library. The header files themselves are part of the Microsoft Platform SDK[^].
Best regards
Dennis
|
|
|
|
|
Hello Gurus,
I created an AutoRun.EXE for my CDs in C#, based on .NET Framework. My AutoRun.exe launches "index.htm" file. It will generated an exception like this on PCs not installed with .NET FrameWork package:
Err Title: .NET Framework Initialization Error
Err Msg: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll could not be loaded.
Basically, My program is like this:
----------------------------------
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
[DllImport("KERNEL32.DLL", EntryPoint="GetPrivateProfileString", SetLastError=true)]
private static extern int GetPrivateProfileString(string lpAppName, string lpKeyName,
string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);
sAppNameToRun = GetPrivateProfileString(...);
try
{
// ProcessStartInfo psi = new ProcessStartInfo(@".\index.htm");
ProcessStartInfo psi = new ProcessStartInfo(sAppNameToRun);
Process.Start(psi);
}
catch(Exception err)
{
Do you know there is another way to create AutoRun.EXE without depending on .NET FrameWork? Or are there any tricks to this? I deeply appreciate any of your input.
Have a peaceful & thriving 2005
Khang
|
|
|
|
|
Yeah, the trick is simple. Write your autorun exe in C++. Seriously, if there was a way to run an exe without the framework, why would we be installing the framework at all ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian, thank you so much for your suggestion. You meant VC++ 6.0 or older versions? I guess I will have the same problems if I use VC++ .NET?
Khang
|
|
|
|
|
Khang Nguyen wrote:
I guess I will have the same problems if I use VC++ .NET?
Depends on what type of application you create in Visual Studio 2003, you can still create unmanaged applications in Visual Studio 2003.
|
|
|
|
|
Thanks, Nick. I am not familiar with this area but I will give it a try. It's nice to learn something new.
Khang
|
|
|
|
|
Like Nick said, C++ is the only language in VS.NET that can create an exe that does not require the .net runtime. I used C++ for the same reason recently, I wrote an app in C# and had to provide an autorun program on the CD to install the software, the database, run the SQL scripts and obviously install the .net framework.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
can any one tell me how to use a DLL made in VS C++ 6.0 to use in a VS C#.NET project. I tried adding one in my solution through referencing it in the C# project but it gave the error that "the DLL is not a valid .NET DLL"....any suggestions?
|
|
|
|
|
Is it a flat C/C++ dll or is it COM-based?
|
|
|
|
|
Its a simple C++ DLL, not a COM based. Infact it has all the working logic, and in the C# project i'm putting the user interface....any suggestions?
|
|
|
|
|
I would suggest you read into the P/Invoke (Platform Invocation Services) that are avaialbe in .NET. This[^] is a nice starter.
|
|
|
|
|
Thanks for your guidance Mr.Parker. Hope it helps
sitarooN se agay jehaaN aur bhee haiN....
|
|
|
|
|
Hi Nick
I try to use c code in c# project. I added c++ class Library and I created a library from c code. Then, I made a C# project and used its library (dll file) in it. It all works fine. But when I try to make memory allocation (malloc) in c code, it falling during executing. What can I do to make it run ?!
(I believe it all have a connection to project’s definitions)
Yossi
Ayallon valley
|
|
|
|
|
Post some of your code so we can look at it to see what's going on.
|
|
|
|
|
I'm writing a pocketpc program in C#. There is a treeview. But I find it hard to set a background image to the treeview. Does anybody know how to do it? Many thx.
|
|
|
|
|
I am trying to upload a file to a SharePoint server however it requires that it be an array of be an array of bytes. If I am uploading a document from my local NTFS partition, how do I access it as an array of bytes?
Cheers,
Jim
|
|
|
|