|
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
|
|
|
|
|
If hte document is a local file, why can't you use FileStream.Read?
<br />
FileStream fs = new FileInfo(localFileName).OpenRead();<br />
byte[] fileContent = new byte[fs.Length];<br />
fs.Read(fileContent, 0, fs.Length);<br />
fs.Close(); <br />
_________________________________
Vote '1' if you're too lazy for a discussion
|
|
|
|
|
Hi, Im new to this forum and pretty new to C#.
I am currently doing a computer science degree and creating a real-time application to allow a musical band to play together over an IP network (all in c#).
I am currently creating an RTP client but am struggling to find out how to generate a 32bit timestamp!
Please could someone point me in the right direction of how to go about this?
Thanks, Mat
|
|
|
|
|
Hi,
Please Help! My project is to write an application that allows the user to select a word document, copies the contents of the doc, and saves the info to the database. My problem is, if the document has a heater/footer my application won’t copy the info from the header/footer. Does anyone know how to access and copy the info from a header/footer? I'm very new at this and your help is very much appreciated.
Thanks
Reny5
|
|
|
|
|
It is located in the Document object I think. I didn't look too in depth, but have you looked at http://msdn.microsoft.com/library/en-us/odc_vsto2003_ta/html/WordObject.asp?frame=true#wordobject_link6
? That site should tell you where pretty much everything is.
If you need more help message me,
Jim
|
|
|
|
|
I have it working. Thanks for pointing me in the right direction
|
|
|
|
|
I have been looking for a graphing component. I have found a few, but was wondering if anyone used and was happy with a particular one. A grid would be used to plot points on the graph. Perhaps a component with grid built in would be nice as well.
Thanks in advance.
|
|
|
|
|
|
Hi,
I have created a windows installer using Visual Studio 2003 and it works fine but what I really want to do is make it launch the application each time windows starts up.
I don't want to use the startup folder in the start menu if I can help it as I know there is a way to add it to the registry, I just cant find a way to do it.
Any help would be much appreciated
Mike
|
|
|
|