|
I wrote a program for Windows XP that does not function in Windows 7. Is there a way I can build the program in Visual Studio so that it will require Windows XP to install?
|
|
|
|
|
The first thing to do would be understand why it doesn't work on Windows 7, you shouldn't be creating an app that is dependent on an older OS.
You can check for the OS version at startup but the logical thing would to would be prevent it from installing in the first place via the setup.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: the logical thing would to would be prevent it from installing in the first place via the setup.
I agree. This is what my question pertains to.
|
|
|
|
|
Then it depends on what tool you are using to create the installation package. You can create a custom action to validate the OS level.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
It is a Visual Studio project, and so far I have been using Video Studio to create the installers. Is this possible to do with Visual Studio?
|
|
|
|
|
Yes. There are plenty of examples for creating custom actions with Visual Studio
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Fix the program; what problem does it have?
|
|
|
|
|
Come on, when a program depends on some third party components, that's pretty normal. And nothing you can change!
|
|
|
|
|
Then make a note in the documentation to that effect and let the buyer beware.
|
|
|
|
|
please,
what is the equivalent of FileSystem.GetFIleinfo() in C#
thanks
|
|
|
|
|
Take a look here[^] and you will see how MSDN shows the differences between the various .NET languages.
It's time for a new signature.
|
|
|
|
|
Um. Difficult...
FileInfo fi = new FileInfo(@"C:\myFileName");
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Good morning.
I have created an Excel add-in to display a Import tab with several buttons designed to run VBA macros.
I only want this tab to display on the one workbook and not every instance of Excel. I am trying to test for the specific spreadsheet name, but the If statement keeps defaulting to the else condition. I have the following:
public RibbonCustom()
{
InitializeComponent();
this.tabImport.Visible = true;
if (Globals.ThisAddIn.Application.ThisWorkbook.FullName.ToString() == "ImportFile.xlsm") { this.tabImport.Visible = true; }
else { this.tabImport.Visible = false; }
}
The MessageBox.Show doesn't work.
Any suggestions? WHEELS
|
|
|
|
|
string theName = Globals.ThisAddIn.Application.ThisWorkbook.FullName.ToString();
if (theName == "ImportFile.xlsm")
{
this.tabImport.Visible = true;
}
else
{
this.tabImport.Visible = false;
}
Put a breakpoint on the declaration of theName , and run the code. Somehow, those two strings aren't the same.
I are Troll
|
|
|
|
|
Hi Eddy. I found one issue. I was using >FullName instead of .Name, but unfortunately it didn't fix the issue. Trying to figure out a way that I can see the contents of the code (variable).
|
|
|
|
|
Wheels012 wrote: Trying to figure out a way that I can see the contents of the code (variable).
That would be debugging[^]?
I are Troll
|
|
|
|
|
Won't debug unfortunately.
|
|
|
|
|
Wheels012 wrote: Won't debug unfortunately.
Tried to attach the debugger to Excel? If you can't debug, then you'd be limited to something like logging to a textfile.
I are Troll
|
|
|
|
|
Hi,
HOw can i insert a image to toolstrip using c#....through property i can do....i need to do through code.
Thanks.
krishna
|
|
|
|
|
toolStripButton2.Image = new Bitmap(fileName);
Or you can embed an image in your assembly and load it using the Manifest resource stream
toolStripButton2.Image = new Bitmap(GetType().Assembly.GetManifestResourceStream("assembly.name.image.name");
|
|
|
|
|
Hi,
Can you send an example code for the same....
Thanks
krishna
|
|
|
|
|
Dear Friends,
We have to get information of gsm connection level in c# (or vb) in windows mobile device
Is there anyway ?
Thanks in advance
|
|
|
|
|
I'm trying to produce a constant sound in a WAVE file.
Using this function (byte)(256 * Math.Sin(frequency * i)); it works and the WAV file correctly created, but it sounds like very bad quality. I tested it against the Beep function and the pitch seems the same.
If I remove the frequency variable from the function, the "quality" of the WAV is far better.
Did I do something wrong or is there a way to clean up the 'noise'?
(to create the file I used a pretty straightforward open source library that I found, which generally creates a header and a byte array and writes that to file)
thanks.
(I'm probably overlooking something very simple )
V.
|
|
|
|
|
I guess the cast to byte makes a problem - isn't 8bit mono sound written as unsigned bytes? Try 16bit sound, that's (signed) Int16.
|
|
|
|
|
It's all 16 bit sound, all info past as int . Why do you think it's 8 bit? I at least defined it as stereo, 16 bit, 44100KHz sample rate.
I tried to inverse the frequency (1/freq) which seems to clean up the noise, yet it remains dirty. (other frequency tests show that I at least have to inverse the freq, else the pitch is not the same at all)
thanks for the idea.
V.
|
|
|
|