neorsp's Q&A profile
.NET Development Calling a C++ dll from C# 2.0
We have a third party C++ dll (black box, no source code), which needs to be called from C#. The C# process, fills in some structure variables and pass it by "reference" to C++ dll, which calculates, fills the results back into the structure variables. Members of the structures are of type byte, long, double and arrays of double type. No string members. After I call the C++ dll, I just see NaN (not a number) in all the result variables. Here is what I do: [ StructLayout ( LayoutKind .Sequential)] public struct test { public long l1; public double d1; //output [ MarshalAs ( Unman ...Show All
SQL Server Cannot read the next data row for the data set
Hi, My report runs fine when I view in VS, data shows fine when I run the query in the data window, but when I publish it to the server, I get the above error. I am running SQL server 2005 RTM and I have re-deployed the entire solution. Any ideas Found the problem. This is a problem that is down to a bug in reporting services, and I sincerely hope that "they" fix it in the first sp! Occasionally, reporting services will change your parameter types to string. This is sooooo annoying, and normally fails when you view, but in this case, it took my parameters (date/time) that were already ...Show All
Visual Studio 2008 (Pre-release) Empty help topics
The "Extending WCF" section in the WCF conceptual help file just has place holders and no real information (with a few exceptions). Is this intentional (and will be filled in next CTP), or is it accidentily omitted We've created place holders for much of the documentation that we intend to write but haven't completed yet. We will be working to fill them in from now until the final release. If you have specific topics that you need, you can try asking the team to see if they can provide the content earlier or give you references to use in the meantime. ...Show All
.NET Development Delay Signing??
Hi all, I'm wondering why should we use Delay Signing. As far i understand,Signing an assembly is required to uniquely identify it in a PC.But when we delay sign it we cant able to place it in GAC,then what is the use of it Is that same of not signing an assembly at all during development time and sign it completely using public/private keys just before deployment Also,I read in some articles that the private key should be kept very secret.Why is that Thanks, Suresh. sureshsundar007 wrote: I'm wondering why should we use Delay Signing. As far i understand,Signing an assembly is required ...Show All
Smart Device Development Device Emulator, Device Emulator Manager, and ActiveSync connection problems
I frequently encounter connection problems when debugging an ActiveSync service provider that runs on the emulator (WM5 - PPC). Sometimes I can uncradle/cradle to get connected, but other times I must restart some combination of the emulator, emulator manager, and ActiveSync. I am using the VS2005 RTM version. Why am I having these problems What are the recommended "restart" combinations for these three programs Thanks, Frank Hi Frank, You don't need to restart emulator or emulator manager. Here is what i recommend: 1. If you have saved the state of the emulator while it is cradled, then every ti ...Show All
Visual Basic Access Database and Bin Folder
I hoping someone can help me out here. I had a similiar problem on a recent project, and I just copied all the files to a new project, and that cured it. But I wonder am I doing something incorrectly. My project has an Access database. It is added to the project. Lets just call it DB_Original J:\AssetNet\AssetReg\AssetReg\Assets.mdb When the project runs, it updates data in DB_Debug J:\AssetNet\AssetReg\AssetReg\bin\Debug\Assets.mdb If I change data when the project is running, DB_Debug is updated. However, when I stop the program running, DB_Original is not updated. So if I add assets for testing, I have to re enter them every tim ...Show All
SQL Server How to connect to remote database using MS SQL Server 2005
i'm using sql server 2005 developer edition. In sql server 2000, when i connect to my remote database, i just need to provide my IP address, server name with password in Query Analyzer. However, i do not know how to connect to remote database in SQL Server 2005. I did allow local and remote connection using Surface Area Configuration. However, after setting this, i do not know where to input the IP add, server name and pwd as well...>_<. Who can help me Thanks for ur expertise. So you want to connect to another sql server instance through sql server 2005 query Are you not able to type it in on ...Show All
Windows Forms How do I use Treeview to represent a folder and its contents?
I have been looking everywhere, and even though it seems like something that would be pretty common, I cant even figure out how to get started doing this. I just want to have a treeview that loads a certain folder and its contents, and lets the user select items. I want to have a button next to the treeview and when the user selects an&n ...Show All
Visual Basic Form Clicks etc
Hi Everyone, I forgot to ask this question... is there a way to set clickable areas of the form without a picturebox or button If there is, how do you find out or determine where on the screen the pointer is when you set up the points I tried to turn the GRID feature on but it never works. I'm using a map as a FORM background, but the pix boxes are slow to load when the form is called. Thanks again, Elgee El Gee wrote: I tried to turn the GRID feature on but it never works. Which grid feature are you referring to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Does DirectX have the OpenGL equivalent of Display lists?
As the subjects asks, is there an equivalent feature in DirectX Basically I want to just render about 200 spheres most of which will be the exact same copy of each other. Drawing each sphere independently of each each other gave quite poor performance in OpenGL until I used Display lists which enabled me to save a fixed set of drawing commands and just call the display list instead of redrawing the sphere each time. That gave a HUGE boost in speed. With 40% CPU usage I could easily render about 200 spheres at 60FPS in OpenGL. I want to know if directX has a similar feature. I've searched a lot online and ...Show All
SQL Server DTS package failing with Object required WScript
I have the following error when I try to execute a DTS package. All the package is doing, is a bit of WScript to map a drive (need it for other packages), so: [code] Function Main() Dim WshNetwork Set WshNetwork = WScript.CreateObject("WScript.Network") WshNetwork.RemoveNetworkDrive "S:" WshNetwork.MapNetworkDrive "S:", "\\myserver\folder1\folder2\folder3\folder4" Main = DTSTaskExecResult_Success End Function [/code] If I copy it out to a .vbs file and execute it logged in as the SQL Agent profile, it works. Execute the package under a job, or just execute it, it fails with the ab ...Show All
Visual C++ First-chance exception occurs when using socket?
I try to use winsock in MFC app. First,I load winsock dll: Init(){ if(WSAStartup(MAKEWORD(2,2), &wsaData) != 0){ return ; } return; } After the user inpute the ip and port, I initiate the socket in another function. Connect(CString ip,CString port){ this->m_CSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if(this->m_CSocket == INVALID_SOCKET) { return FALSE; } m_sAddr.sin_family = AF_INET; m_sAddr.sin_port = htons(atoi(port)); m_sAddr.sin_addr.s_addr = inet_addr(ip); } When it run to the first line of the function, the exception occurs. I don't why. Thks & Rgds! You should copy the full excepti ...Show All
Visual Studio Express Editions .NET framework 1.1
Should I uninstall Microsoft .Net framework v1.1 prior to installing c++ express ...Show All
SQL Server "WITH RETURNS NULL ON NULL INPUT" not working?
Hello. I've built a sample CLR function with the following declaration.... CREATE FUNCTION GetManager(@DeptCode nvarchar(3)) RETURNS nvarchar(1000) WITH RETURNS NULL ON NULL INPUT AS EXTERNAL NAME Assembly1.[ClassLibrary1.MyVBClass].MyManager And it works as expected, except when I use NULL: DECLARE @MyManager nvarchar(1000) EXEC @MyManager = dbo.GetManager NULL PRINT @MyManager It returns the value "Unknown" as it would have for any unknown DeptCode, as-programmed. I'm of the theory it should have returned NULL without actually firing the function Or is this only for non-CLR items... or stored procedures, not fun ...Show All
SQL Server How to show the border of the table?
hi, How to adjust/display/hide the table border(including all cells) I see in the property page, there is a BorderStyle for the table, but it only changes the outline of the table border style, I want to change the border style including all cells, like we did in html page, is there an easy way to do this, or I have to make the setting for all cells Thanks I don't think there is a way to force gridlines for the table. You'll probably need to specify the borders of the cells. ...Show All
