Software Development Network Logo
  • IE Development
  • Visual C#
  • .NET Development
  • SharePoint Products
  • Microsoft ISV
  • Visual C++
  • Audio and Video
  • SQL Server
  • Visual FoxPro
  • VS Team System
  • Visual Studio
  • Windows Vista
  • Windows Forms
  • Smart Devicet
  • Game Technologies

Software Development Network >> FergusLogic's Q&A profile

FergusLogic

Member List

DesignerX
Deco
fredrikt
LennardF1989
A. Argueta
Suneel VLN
Marlin7
Scionwest
BrentHecht
The Samster
rene-poepperl
BilalShouman
cdun2
Ariel S
Tim Anderson
Kurt Biesemans
jatwood
coolcars
Zakamon
tradle
Only Title

FergusLogic's Q&A profile

  • Visual C# Change default audio output when playing files with MCI

    Hi, I'm trying to build an application that plays files through MCI. Example: [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr hwndCallback); mciSendString("open filename type waveaudio alias soundfile", _return, 0, _handle); mciSendString("play soundfile wait", _return, 0, _handle); This works fine. BUT, this function use the default sound device (set in control panel), and i need to play files on different devices... So, i can either change the default sound device just before i use the function above, or provide the deviceid( ) to a similar play-function. My questions are as follows, 1 - How can i chan ...Show All

  • Windows Forms About winform UI like options in vs

    I want to make a options window like option window in vs. when I click node in tree view leftside, the content on the right panel will changed. I get to way, one is use groupbox, the other is usercontrol. but I think all of them is too complex if there is a lot of options. Is there any suggestion thanks To make your own Options dialog like VS has, put a TreeView control on the left populate it with your options items, which include some kind of key to identify them uniquely when the user clicks on one of them. Based on this key, you can then load up/show the corresponding user control with options for that item, and bind the fields to your application settings. To make this not too heavy on resou ...Show All

  • Commerce Server getting more info from purchase orders

    I have used the example and retrieved the purchases and they contain things like OrderGroupId, SoldToId, SoldToAddressId, total, etc. I would like to get the actual address of who it was sold to, the contents of each line item, and the credit card information (type, number etc). It seems that with the ordergroupid, and the addressid I should be able to grab other types of information, and I can see it in the DB, but how do I grab the data through the API thanks! Thank you, that does help a grea deal...but it leads into another question.  I see the Payments.CreditCardPayment table has a field called CreditCardNumber, but it leaves it blank, where can I grab the credit card number from thanks ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Input

    How can u add joystick, and trigger input. I can do all of the other buttons, except for them. They seem to have to have something diferent. Don't do both of these at once; i'm just showing how you would use either one. Vector2 position; public override void Update(GameTime gameTime) { // make the guy move in the +X direction based on how much the right trigger is pressed position.X += GamePad .GetState(PlayerIndex.One).Triggers.Right * (float)gameTime.ElapsedGameTime.TotalSeconds; // make the guy move based on the joystick. 1 unit per second. position += GamePad .GetState(PlayerIndex.One).Thumbsticks.Left * (float)gameTime.ElapsedGameTime.TotalSeconds; } ...Show All

  • Visual Basic How to Use MailMessage to Send MHTML?

    I'm attempting to send an MHMTL document out as an email and am having issues getting it to do so. What I've done is created a windows service to poll reporting services for a "Web Archive" report (read in as a string or byte array via System.Net.WebClient) that I then want to send out to a set of people via System.Net.Mail.MailMessage. I'm aware that reporting services has subscriptions built in, but the situation is a little more complex than that and requires a seperate program to poll the report. What I'm looking for is some sort of code sample or something that demonstrates sending MHTML as part of the body of an email using VB.NET (Or C#) ASP.NET 2.0 standard objects. If anyone could point me in the right direction or ...Show All

  • Visual Studio HELP with internet explorer 7

    Hey, i need help.. i'm only 12 years old so i don't understand a thing about this stuff. I'm using mozilla firefox because a viruus attacked my internet explorer and now the program is gone... I can't see my dsktop and all i can do is task manager to run this firefox.. it says it cant fine the EXPLORER.EXE and i need the normaliz.dll to be reinstalled.. o.o i dont get it.. PLEASE help me.... Typical cryptic response from Microsoft. If the kid goes to the ie/support site you suggest there is no opportunity to state his problem, just pre-digested questions and answers. So instead of a real answer you send him somewhere else. Why don't you go somewhere else! ...Show All

  • Visual C++ CWebbrowser object and IE 7

    I am getting a strange error from the scripts of this object when ran on IE 7.0. When I step into the debugger, I get the message: "Object expected" and I get this listing: <html><head><script src="res://mshtml.dll/objectembed.js"></script> <script language="javascript">var objectSource="http://www.photosphere.fr/sedonline_anim/entree_nor.swf"; </script> </head><body onload="ObjectLoad();" leftmargin=0 topmargin=0 scroll=no> <form id="objectDestination"></form> </body></html> With ObjectLoad() highlighted in yellow. This of course works like a champ with IE 6.0 and former. Nor do I have any problem ...Show All

  • Windows Forms Getting Error "The type name 'ClientCaseInfoControl' does not exist in the type 'ClientAdjuster.ClientAdjuster'"

    I have written my first user control in Visual Studio .NET 2005. Because I am not interested in this user control being used in any other application besides the WinForm app I am writing it in, the user control is in the Windows Forms project. In design mode, the VS .NET IDE recognizes it, works with it, etc. However, when I try to compile the app, I get the error message: Error 1 The type name 'ClientCaseInfoControl' does not exist in the type 'ClientAdjuster.ClientAdjuster' D:\AMCI Apps\ClientAdjuster\ClientAdjuster\ClientAdjuster.Designer.cs (the name of my user control is ClientCaseInfoControl , and the name of the project is ClientAdjuster . I don't understand how the project could not be aware of a user control, that is w ...Show All

  • SQL Server Divide by zero error only with top

    In the following expression, the query executes with no errors (there are sometimes 0's and nulls in IRON and ENERGY): SELECT * FROM gff2vg WHERE ( gff2vg . ENERGY > 0 and gff2vg . IRON > 0 ) order by IRON / ENERGY desc but when TOP is added there is a divide by zero error. Is there a way to avoid this SELECT TOP(64) * FROM gff2vg WHERE ( gff2vg . ENERGY > 0 and gff2vg . IRON > 0 ) order by IRON / ENERGY desc Thanks. The expression in the ORDER BY clause has nothing to do with the predicates. It just ensures that you don't get overflow error in case of 0. NULL values of energy or iron will get filtered because of your WH ...Show All

  • SharePoint Products and Technologies Index Server combo box greyed out

    Hi I am trying to create 'New Shared Services Provider' on newly installed sharepoint 2007, but combo box is greyed out. How do I assign index server role. in central admin, go to "operations" and "services on server" and then start the microsoft office search, with atleast the "index" role turned on. good luck! ...Show All

  • Software Development for Windows Vista Do unsigned apps always give a UAC warning?

    We're distributing a legacy app. Do all unsigned apps in Program Files cause the UAC warning when run Is there any reason we can't just have the user install the app in C:\users\login-name so that we avoid all the UAC problems of Program Files We have the similar problem, but our package is not MSI-one. I suppose the reason covers in the type of the installation package - at present we have simple EXE-file generated by IS, but soon we'll migrate to MSI packages due to LOGO certification (this is a requirement). I'd be glad if someone could clarify if I'm right or not, but if no one can I'll inform this Forum's inhabitants as soon as I get the answer by myself. :) By the way, does anybody know why Vista marks executable files with ...Show All

  • Visual C++ MFC edit control border

    Hi, I'm trying to make various MFC applications with edit controls using VS2005 when I noticed my professor's edit controls were flat, 2D with just a blue border.  I have no idea how to accomplish this.  In VS2005, I open the IDD_FORMVIEW and add an edit control with no static edge or anything, just border set to true.  In the designer and the "Test Dialog" mode, the control looks correct:  2D, blue border, very simple.  But when I build and run, the blue border is gone and the edit control is now sunken and 3D.  My professor has no idea why his is different, since our edit controls use the same options.  I have also tried to do the exact same thing in VS2003 on a different computer, wit ...Show All

  • Visual Studio Express Editions Application to generate MS 2007 Excel document?

    how a C++ application can generate the MS 2007 Excel file For example... if I had a form with text box and a button on it. When the button is clicked, program make a new MS Excel document that has a cell table with the text box value in cell, and save this Excel file to the current directory Thanks. hello Re: Application to generate MS 2007 Excel document look at this article: Creating an Excel Spreadsheet and Adding Data to It Programmatically , it use c# in sample code, but i believe c++ can make the same thing. thanks rico ...Show All

  • Visual Studio Express Editions Sending Data between forms not working!

    This simple example below does work. But, I am doing the same thing in my app and Form2 is not getting the string from Form1! Public Class Form1 Public str As String Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load str = "hey" Form2.ShowDialog() Close() End Sub End Class Public Class Form2 Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load MsgBox(Form1.str) Close() End Sub End Class try.... Dim  Str A s String Public Sub New ( ByVal  Str As String )       Me .Str = Str ...Show All

  • .NET Development Com Visibility in VS2003

    Hi guys I have a web application developed in Vb.Net under VS2003. Now, a certain vendor requires us to build an interface dll that is "COM Visible". Since VS2003 has no option available in Project Properties to do this, how do I sort this out Sadly it took me considerable time and effort to realise that a dll developed likewise in VS2005 cannot be made to work with VS2003 ! Please help me with your suggestions/solutions. Many thanks Suhaib Thanks Andrew You've brought in a ray of hope Did you mean < Assembly : ComVisible( True )> btw Many thanks Suhaib ...Show All

©2008 Software Development Network