BigErn782's Q&A profile
Visual C# .NET and .NET API from OPC Foundation
I hope that's the right forum for my question. I have to communicate via .NET API from the OPC Foundation with a Siemens OPC Server to get and set data. I want to use OPCDA and C#. Unfortunatly the documentation is poor, I didn't find useful samples or better description. For example I do not know how to get to a server object. I find no documentation about what exactly is url.Path, what for do I need connectData Opc. Factory f = new Opc. Factory ( typeof (Opc.Da. Server ), true ); Opc. URL url = new Opc. URL (); url.Scheme = Opc. UrlScheme .DA; url.HostName = "ATHEAUGW0476" ; url.Path = "OPCDaten" ; f.CreateInstance(url, null ); Does any one know a ressource to get samples, documentation or any h ...Show All
Visual Basic Date
Hi I have thsi Dim thisday As Date = Convert.ToDateTime(theNumber) How do i say thisday + 7 days more Reagrds alvin Have a look at this page : http://msdn2.microsoft.com/en-us/library/system.datetime_methods.aspx I'm sure you'll find something ...Show All
Software Development for Windows Vista MDAC and OLEDB
Does anyone know if there are vista compatible versions of these available Hello Tony P Brightman, MDAC is now known as Windows DAC in Windows Vista, for more information on Windows DAC please see here: http://msdn2.microsoft.com/en-us/library/aa968814.aspx Thanks! Matthew Braun ...Show All
Visual C# Operator '+' cannot be applied to operands of type 'T' and 'T'
One day, the Microsoft C# team will stop treat us as kids, and this code will become possible: public static ABIDataVoidNull<T> op_Addition_NV_NV<T>(ABIDataVoidNull<T> inValueL, ABIDataVoidNull<T> inValueR) { if (inValueL.IsVoid) { return (ABIDataVoidNull<T>)inValueR; } else if (inValueR.IsVoid) ...Show All
SQL Server Read CSV file - Save Columns into Rows
I want to import CSV file and convert columns into rows depending on Customer count(2nd record in each row of CSV file) and save to SQL table --CSV file format State, Customer_Count, Name_1, Total_1,Name_2, Total_2,Name_3, Total_3..can go upto 600 GA,2,'John Doe',14.00,'Roger Smith',15.00 FL,3,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00 SC,5,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00,'James Brown',17.00,'Rick Davis',18.00 Data in SQL table from csv file should look like this State,Name,Total GA,John Doe,14.00 GA,Roger Smith,15.00 FL,John Doe,14.00, FL,Roger Smith,15.00 FL,Sally Cox,16.00 I have multiple CSV files with millions of records. How can i achieve this using Integration Services or Bulk Data ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems on resize
Hi, I’m the coordinator of Jad Engine, a MDX 1.1 open source 3d engine. We have had one bug around for several months that we are unable to solve related to resizing the device. At the start, we used SetAutoDepthStencil = true when creating the device, and there was nor problems with the resize. But nowadays we do it manually and SetAutoDepthStencil is false. But when we reset the device, the D3D debug tells us that one surface has not being liberated. That surface is the DepthStencil we just created, because if we don’t create it, the reset works. The Microsoft.DirectX.Direct3D.Device.IsUsingEventHandlers is set to false as we create ourselves the VertexBuffers in DEFAULT mode and that’s the only way that they don’t give us an error on th ...Show All
.NET Development Querying DHCP information from Windows DHCP Database
Hi all, Is it possible using WMI, to query the DHCP info wherein I can get my DHCP Server's Address Leases,Reservations,Hostnames,Mac Address . The DHCP GUI is able to display it, so, is there any way I can get this information in C# using System.Management namespace . Thanks. I had a question regarding querying DHCP Database using Microsoft API's in c++. I am not able to use MAC Address to query information about a client using DHCP Server. Has anyone tried this yet. ...Show All
Visual Studio Express Editions sign-up number
Now that I have this number, just where do i register it You wil need to run the application, go to the start menu on your machine and find the express product you have installed... Note that if you installed the package from a CD or Downloaded the full ISO Image you will be asked to register the product, but you do not have to as per the FAQ... But you can register and you will not be sent a key as there is no place to put it... But if you use the web installer the above instructions are correct. ...Show All
Windows Live Developer Forums Anyone else getting script errors when clicking on a pushpin?
In IE7, the error shows up as "Expected ';'" on line 1, char 12. In FireFox, the error is "Error in parsing value for property 'width'. Delcaration dropped." Any workarounds or fixes for this ...Show All
Visual C++ trouble with __declspec(dllimport)
NOTE: I'm using VS 2005 I am attempting to access a driver using __declspec(dllimport) (as the .h file that came with the device was setup this way), I've never done it this way before so I'm experiencing issues. (I am doing this on a handheld but I feel this is generic enough for the general forum) (I don't think it matters but this is a ZigBee SDIO card from C-Guys) I've placed the .dll file and the .lib file (don't know which I actually need) in the project directory (with all .h and .cpp files), here are some bits and pieces of code from the .h file #define SDZIGBEEDLL_API __declspec(dllimport) . . . SDZIGBEEDLL_API int SDZigbeeDll_DeviceStatus(void); from my code #include "SDZigbeeDll ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Applying shaders to DX7 scene -- any way?
Is there any way to render shaders onto Direct3d 7 objects I realize shaders weren't introduced until DX8. However, I'm stuck with a proprietary DX7 game engine and I cannot access the source. One possible hack would be to render the DX7 scene to a bitmap, apply that bitmap to a DX9 object, apply a shader to it, then bring that bitmap back into the DX7 scene. But I've the feeling that won't achieve the desired shader effect. Is this a viable option, or are there any other options for applying shaders on DX7 objects This is not achievable in real-time frame rates. Transferring data from a DDraw7 surface to a D3D9 surface is going to be very slow because it has to be all done on the CPU by locking both surfaces manually and doing the ...Show All
Visual C++ Building trouble : error LNK1104: cannot open file
Hi every body, I'am in serious trouble cause i can't find the solution of my problem. I'am trying to convert an .exe into .dll file after i downloaded the source file of the .exe . I inserted the source code into a "MFC AppWizard(dll)" project and compiled it (was ok) and when generating the .dll file (after i mentioned the "Object/library Module" under the "Project/Settings/Link" Menu ) i got this error : Linking... LINK : fatal error LNK1104: cannot open file "C:\dll3\VisioneerDll\twaintest\Debug\twaintest.lib" Error executing link.exe. Creating browse info file... twaintest.dll - 1 error(s), 0 warning(s) with out mentionong this library ( which is not correct cause the librar ...Show All
Visual Basic WebBrowser will not work with Flash. ANYBODY HAVE A FIX
I have created a web browser and after like 2 clicks on any flash enabled web page it disables and i cannot click any type of flash anything it doesnt work. Does anyone know a fix to this Hi, Parse all script code in your browser and output only the html or xhtml code that you need to process else process every available scripting language so you would need to learn them all. :-( See http://w3schools.com on web page stuff, there's lots!! :-| Merry Christmas!! Regards, S_DS ...Show All
.NET Development Running Windows app on Thin client doesn't work
Hi, I have created my first Windows forms app in .Net 2.0; installed it on a thin client (not sure which version of the Windows OS it is running); when I double-click on the exe file to run it, the hourglass comes on briefly, then goes off and nothing else happens. If I run the app on the C: drive of a thick client (running Windows XP) it works OK. The app is a Windows forms/ Crystal Reports app; using a Microsoft Access database. Any idea on why nothing happens when I run it on a thin client and how to resolve it Thanks in advance. AndrewVos wrote: I think he/she means an embedded OS Like on a cellphone or something... Oh, only saw that third post now ;) ...Show All
.NET Development Expose DataSet for web service client
Hi: I have a web service with a typed dataset defined. I also got a windows form as a web client to consume the web service. In the win form project I successfully added a web reference to the web service but was not able to reference the typed dataset defined in that web service. I took a look at the Issuevision sample and confirmed that the client was able to reference the typed dataset referenced in the web service. So I'm missing something here hope that someone can give me a hint. Both solutions were developed in the VS 2005. Much appreciated. Hi Rod: Yes, I got the referenced Dataset once have a return method returned to it. As it is my first time writing web service this certainly is one o ...Show All
