JeremyAtGosub's Q&A profile
.NET Development Mapping Xsd element attributes to DataSet
Hello I'm using VisualC++ 2005 express edition. Im looking for a way to pas metadata from xsd document to a data set by using elemnent attributes. The problem is that I don' t know how to check user declared element attributes (inside xsd) in data set structure. I'm sorry if this question seems trivial but I'm quite new to the .Net platform. Any suggestioins would be fine. ...Show All
Visual Basic MySQL
Using MySQL to store my information on my server and I am writing a program to read/write to it. I am using an example on the web click here to setup my Login screen. Im having problems with the Imports MySql.Data.MySqlClient . I have gone to MySQL.com and downloaded the connector but I can't seem to get things working right. What am I doing wrong I clicked on Data and then Add New Data Source. From there I used the userid and password I had created for the specific database (schemea) I am using. VB does the coding behind the scenes. ...Show All
.NET Development Could not load file or assembly 'Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
I have deployed a web application on my test server, but am getting the following error Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\inetpub\wwwroot\structuredProduct\web.config line 61) (C:\inetpub\wwwroot\structuredProduct\web.config line 166) Source Error: Line 164: </httpHandlers> Line 165: <htt ...Show All
Visual Studio Express Editions relays...
Could someone point me towards some material on programing with the serial port or if someone saw a post on a site like hackaday that uses serial port programming. I am trying to be able to control 4 relays (or i can start with 1) over the serial port. or usb, you decide what the best thing would be to use. Thanks to all the people who post on msdn forums.. Average Joe Hi Averge Joe You have not found the right pin or your port is burned off. The voltmeter should read either -3V to -15V for logical 1 or 3V to 15V for logical 0 (usually +/- 10-12V). The voltage should never be between -3V and 3V no matter how you make your software. Note however that the port is in no way powerful enough to dri ...Show All
SharePoint Products and Technologies InfoPath Forms with managed code with Workflows
hi , im trying to invoke a task form created in Infopath while my workflow is running on sharepoint site. My taskform (TaskForm.xsn) have managed code with it. i want to call this form in my workflow. when i do this the taks form open but when i click on button for which managed code is written it shows error . i think im missing the procedure to use infopath forms with managed code in workflow. please help Were you able to figure this out I'm trying to do the same thing and am having the same problem. Thanks, Cynthia ...Show All
SQL Server CASE Returning NULL
Hello, I have a query that contains six derived columns; FirstPerYr; The current year FirstPerMo; The current month FirstPeriodRevenue; CASE the current year, use the CurrentYearSalesTable (CY). CASE the current month, match the correct column (JanRev, FebRev, etc) of the CurrentYearSalesTable to get the correct data. FirstPeriodYrAnnum; Last year FirstPeriodMoAnnum; The current month, last year FirstPeriodAnnumRev; Same as FirstPeriodRevenue, but from the year and month before. In the following query, I get the correct FirstPeriodRev value, but FirstPeriodAnnumRev comes up NULL. I know I have data for January 2006. The query is as follows; --************************** DECLARE @FirstPerYr Int DECLARE @FirstPerMo Int DECLARE ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectInput (MDX 1.1) GameComponent for download
I've got a DirectInputComponent started. I'm posting it here in case someone finds it useful. Its not real fancy but its a start ;). With luck, people will post additions and or fixes/refactorings. Some notes: - You'll need the DirectX SDK (August 2006 is what I'm using) - It only supports one device at a time (though you can switch). - Its not very tested yet. - I made it work using my joystick (saitek something or other). You will probably need to fix it up a little to support your joystick/controller. The reason for this is that there is really no standard among joystick manufacturers (so the rudder may show up as Rz or just Z - this is why DirectInput is dying BTW). - It only supports one POV and one Slider. If you have two the se ...Show All
.NET Development Custom Event Log
When installing a Windows service, the installation process automatically adds the app name into the registry as a "Source" for the Application event log. I have not configured an event log installer with the project, but yet it automatically configures the event log. Does anybody know how to suppress this from happening I then tried adding an eventloginstaller to configure the source as a custom event log. When the project installs though I get an error message stating the source already exists. Thanks, Don The event log ServiceInstaller automatically creates my app as a source to the application log. I don't want the source registerd to this log, but rather to a custom event log. I tri ...Show All
Visual Studio Express Editions Best way to create Data report similar to pivot tables in excel??
I have a table of data with 9 columns, the important ones being a date, client id, and service code. In excel, I would create a pivot table showing the days of the week (1 column for each day) across the top of the screen and the client id down the left side of the page with multiple service codes for each client id. The data input in each column would be the hrs and minutes taken for each day of the week for each service code for each client id. I would like to generate a similar report from my datatable through VB Express (utilizing SQL Server Express). Is there a way to do this I was thinking possibly a dataview would be my best option, but have no experience with these and could use a boost to get started. I've tried to illustrate my ...Show All
Visual C# bypass .Net not installed scenario - by embedding C# appl. inside C++ appl.?
I have a smallish C# application that i wish to distribute as a standalone executable (ie. without installer or other support files). Easy enough if everyone has .Net Framework 2.0 installed as it's a simple question of file copy/mail/web-publish/etc. The problem is when the application is run by someone who doesn't have .Net installed, it exits without any visible error (except for an obsecure entry in the event log). Needless to say, this is not very helpful :< A workaround i had thought was to embed the c# application in a thin C++ Win32 application, the latter of which simply detects the present of .Net installed; a) not installed - prompts the user for action (ie. instead of just quietly aborting) b) is installed - extract em ...Show All
Smart Device Development SerialPort.BytesToRead max's out at 2047
hi, currently i'm doing a program for pocket PC connected to RFID reader using Serial Port. I'm very new with the program with window CE. I had done the same program in Window Form and it running well. But, when i transfered the program to Smar t Device Application, the program not running well. I had try 2 ways. First is using timer, and second is using serial_portData_Received. Below is the codes: Using Timer: program stuck on sp.Write( new byte [] { 0xC0, 0x02, 0x01, 0xFF }, 0, 4); =inside timer private SerialPort sp; private void Form1_Load( object sender, EventArgs e) { #region Serial Port Init sp= new SerialPort (); sp = new SerialPort (); sp.PortName = "COM1" ; sp.BaudRate = 11520 ...Show All
.NET Development Marshalling structures with variable-length inline strings
Greetings, I'm having trouble solving a pinvoke marshalling challenge in C#. I need to call an unmanaged API function which expects a structure containing a variable length inline string. Here's the unmanaged function prototype (from MSDN): BOOL SetupDiGetDeviceInterfaceDetail ( HDEVINFO DeviceInfoSet, PSP_DEVICE_INTERFACE_DATA DetailInterfaceData, PSP_DEVICE_INTERFACE_DETAIL_DATA DeviceInterfaceDetailData, DWORD DeviceInterfaceDetailDataSize, PDWORD RequiredSize, PSP_DEVINFO_DATA DeviceInfoData); The troublesome guy is the third argument, DeviceInterfaceDetailData . Here's its definition (again from MSDN): typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA { DWORD cbSize; TCHAR DevicePath[ANYSIZE_ARRAY]; } SP_D ...Show All
SQL Server Do we have something like Session Recovery as in Informatica in SSIS 2005?
I am runnning a package which loads 3 million records, if my package fails after loading 1 million records, How do I execute my package in order to load the records from 1 million record My guess is checkpoints will not help in this case. Do we have any other option to recover the session Jagapathi Raju wrote: I am runnning a package which loads 3 million records, if my package fails after loading 1 million records, How do I execute my package in order to load the records from 1 million record My guess is checkpoints will not help in this case. Do we have any other option to recover the session hi, in the priciple of design of a good ETL process one of the main concept that you ...Show All
.NET Development C# Client client connecting on a webservice using the linger option
Hello, Here is my problem : * I have a soap server written in C++ and running on VxWorks. On this server the linger option is activated (value = 1s) so sockets stay connected 1s after closing) * On the other side I have a C# Client. (The proxy is generated with wseWsdl3.exe) The client is calling a method every 20ms and everything works fine exept that after 1 or 2 minutes I have the following error that appears : Error 10048 : address already in use. I suppose that .net takes more time to release the client socket than VxWork.... Is there a way to set the LingerOption in the proxy generated with wsewsdl ...Show All
Visual C# how can i use ole like tech in C#?
first Q: i want use c# to insert into richtextbox an object ,but i can't find ole in c#,so what can i do to insert an object Second Q: when i use ,i find richtextbox can't displey table correctly in vs2005,for example i draw a table in word application ,but when i copy it to richtextbox ,the table is not the same like in word. A RichTextBox control is not a complete functional replacement for Word. I seriously doubt it supports embedding OLE objects. Tables are likewise an advanced Word feature and Word has constantly tinkered with it in every new release. ...Show All
