newtoc#484467's Q&A profile
.NET Development The Specified Module could not be found
I have an application developed with Visual Studio 2005 which consists of the main application EXE as a managed .NET Windows Forms application in C# and an unmanaged C DLL. I am calling functions in the unmanaged C dll using for example: [ DllImport ( "mynative.dll" )] public static extern short initialise(); and in the C DLL I have __declspec ( dllexport ) short initialise(); This all works perfectly on my development PC but when I deploy to another PC and run the application I get an exception as follows: Unable to load DLL 'mynative.dll" : The specified module could not be found (Exception from HRESULT: 0X8007007E) mynative.dll is present and stored in the same folder as the myapp.exe file and .NET 2 Frame ...Show All
Smart Device Development Application works on one handheld but not on the other!!!
Hello people, this is my last shot so please help me out! I have two MC1000s handheld barcode scanners. My application works on the one but doesn't work on the other. It has something to do with SCAN_ENABLE error that doesn't appear when I remove any SQL code. I emphasis that it works on the one but not on the other. The only difference I have found is that the one that works has an OEM 00.00.0007 and IPL 01.00 and the one that doesn't work has an OEL 01.00.0011 and IPL 01.01. Please help! I have tried pretty much everything and I really hope someone will give me an answer! Thanks in advance, John. This is probably an issue best pursued with Symbol support, or a Symbol forum ... That sa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VertexPositionTexture Problem xna beta 1
Hello guys!! I'm trying to texture a simple face of a box composed by 2 triangles! I'm using the documentation example "How to: Apply texture to 3D primitives" the code... effect.fx uniform extern float4x4 WorldViewProj : WORLDVIEWPROJECTION; uniform extern texture UserTexture; struct VS_OUTPUT { float4 position : POSITION; float4 textureCoordinate : TEXCOORD0; }; sampler textureSampler = sampler_state { Texture = <UserTexture>; mipfilter = LINEAR; }; VS_OUTPUT Transform( float4 Position : POSITION, float4 TextureCoordinate : TEXCOORD0 ) { VS_OUTPUT Out = (VS_OUTPUT)0; Out.position = mul(Position, WorldViewProj); Out.textureCoordinate = TextureCoordinate; ...Show All
SQL Server Data Transformation Services.Linked server Error while connecting to Oracle
Hi, I am in the process of doing DB migration from Oracle 9i to SQL Server..I am able to connect to SQL Server. But when I give import data and give the parameters to hook up the Oracle Server its throwing a "Linked Server Error and says insufficient previleges"... Is there any problem with my Oracle id Using my Oracle id i was able to take a read and write in to the oracle db.. Secondly is there any other thing that should in taken in to consideration when configuring SQL Server DTS while connecting to Oracle to avoid this linked server problem Also there isnt a connectivity problem if I directly connect to Oracle using SQL Plus..The server is running fine. But only when I try connecting it through DTS to import data, ...Show All
Visual Studio 2008 (Pre-release) Webcam Preview / Streaming
Hi all. Been looking around with the aim of writing an app that can both preview and stream webcam video, but appear to have fallen at the first hurdle. All the information I can find seems to be older, using either native calls or DirectShow to perform this, but I've been told that the framework now supports using a WebCam. Anyone got any information on how to use a webcam preview, and maybe how to go about streaming it over a network Thanks! I'm also looking for something like this, I want to: 1. Encode a movie/audio-file (from any kind of source) on a server 2. Stream the media to a client (with WCF ) and display it in a MediaElement. Step 1 may be skipped, i just want to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What's difference between Express and Professional?
I've installed the Express edition beta 1, but I have interesting to the Professional edition. I thought the Professional edition should have more classes than Express edition, but I've never seen any documentation to compare the class library of each edition. Could you tell me the differences of them, particularly about class library Or I'd be happy if I could find the reference manual of XNA Game Studio Professional on the net. Thanks, Hayashida EWSommer wrote: Well, I don't plan on writing 360 games, so the devkit stuff wouldn't matter to me. The ability to use it with something besides C# Express without having shell out lots of money would be nice. It's already been stated support ...Show All
Visual C++ Explicit Specialization of member functions.Help !
I have written a Stack class as shown below. Can anybody tell me how to specialize the Sum function for const char * #include <iostream> #include <cassert> #include <string> using namespace std ; template < typename T, int size = 5> class Stack { T arr[size] ; int m_Top ; public : Stack() ; void Push(T val) ; void Pop() ; T & Peek() ; T Sum() ; } ; template < typename T, int size> T Stack<T, size>::Sum() { T temp = T() ; for ( int i = 0 ; i < size ; i++) temp+=arr ; return temp ; } template < typename T, int size> Stack<T,size>::Stack() : m_Top(-1) { } template < ...Show All
Software Development for Windows Vista Using CardSpace in public places?
Hello, I've been looking at CardSpace for a while and haven't run across anything that explicitly discusses its use in public places. Are there any plans for using these cards at work, school, etc. without having to recreate the card (or copy it via email or a flash drive) And more importantly, will there be a secure way to do this, possibly a one-time usage Thanks, Brian As a matter of fact, maybe. see: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=700524&SiteID=1 If you have an opinion, make it! g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn.com/garretts ...Show All
Visual Basic Copy Word text into excel macro
Hi. I've got a folder with 1500 word files formatted the same way. I would like to have a macro that would open all the word files and copy a certain portion of it into a single excel sheet. Thanks for any tips! francois170 at hotmail.com This could probably be done with Office Interop. However, you would probably like to look into the recently released Microsoft VSTO - a suite of tools that help integrate office applications. ...Show All
Visual Studio How to continue execution after an exception?
hi, Sometimes I need to end the current process without reporting an error in my windows application, so I design an AbortException class and handle this exception in Application.ThreadException event. It works like a "silent exception". Everytime I need to stop a process without showing a message, I throw an AbortException. But it is really a problem when I need to continue debugging after this exception. Does anyone know how to avoid the Exception dialog box from reappearing I found a related topic on http://msdn2.microsoft.com/en-us/library/ky9bw27e.aspx but it didn't help... Thanks. Stanley Stanley, I assume you are talking about the Exception Assistant (EA) dialog that comes up ...Show All
Visual C# Find active user under Fast User Switching
Can anyone tell me the best way for a service to find the current active user under fast user switching. The method should work under W2K as well as XP so WTSQueryUserToken is no good. I'm developing with c#.NET 2.0. Ooops, you're right. Nevertheless, I would still like to know the best way of doing this under XP. Also, even if W2K doesn't have fast user switching, it still has a logged-on user and I need to know how a service would find this. Unfortunately, of course, now that you've replied to my post, everyone else sees that it has been replied to and doesn't bother looking at it. ...Show All
Windows Forms Unhandled Exception in NumericUpDown Event Handler
The NumericUpDown control throws a NullReferenceException if Application.DoEvents() is called in the ValueChanged event with some additional processing and the up or down button is pressed rapidly. The exception can also occur if the event handler takes a while to return. To reproduce, add an event handler for the ValueChanged event on a NumericUpDown and insert the following code into the event handler: for(int i = 0; i < 10; i++) { Application.DoEvents(); Thread.Sleep(50); } Run the project and hold the up or down arrow for a few seconds. The following exception occurs: System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.UpDownBase.UpDownButtons.TimerHandler(Object source, ...Show All
Visual C# extracting data from comma delimited string
hi, im using c#, have a comma delimited string and i wish to split it. string example is: john smith, freddy, mark/,jones, john i don't wish to split where a comma is backslashed. any ideas thanks. TechRepublic.com CNET.com News.com Builder.com john/, smith GameSpot.com getting better, how do i remove the backslash Thanks for your time andrej ...Show All
Visual Studio Express Editions Print Dialog Help
I was wandering, if someone could help me, with print dialog... I want it to basicly open print prompt, then when the user clicks print/ok, it prints mnotepad (rich text box), could someone please help me Thanks. I hope these resources will help you: http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx http://www.startvbdotnet.com/controls/printdialog.aspx ...Show All
.NET Development How-To (Object Class => Binary Serialization => To Memory => Encrypt => Save to File)
Hi Every body .... I have a [Serializable] Class like this ======================================================== [Serializable] class Customer { private string _CustomerName; private string _Country; public string CustomerName { get { return this._CustomerName; } set { this._CustomerName = value; } } public string Country { get { return this._Country; } set { this._Country = value; } } } ======================================================== How can i use Binary Serialization to serialize the object class temprary to Memory and Encrypt it and then save the encrypted to file. Like this 1. Object Class => Binary Serialization => To Memory => Encrypt => Save to File 2. Read file => To Memor ...Show All
