Nils Nordenbrink's Q&A profile
.NET Development Data Access, where to start?
Hello, I am developing a small application and I am wondering where to store information that I need. After some thought storing the information in XML or in an Access database is probably the best option. Could someone point me in the direction of some resources for opening a connection, getting info and sending info to XML or Access or both Cheers, padraic Hickey Padraic, We've got two choices here I'd recommend, but # 2 if I were you: 1. Use an Access database Go to the MSDN Office Developer Center - Access http://msdn.microsoft.com/office/understanding/access/default.aspx Post your Access relate ...Show All
Smart Device Development Calling native dll function problem
Hi all, I am using Compact framework 1.1 and VS2003 I am calling following function from "C" dll declared as TTGPS_API void WINAPI TTGPSDetailFind(HWND hTTGPS, UINT uiNum, UINT uiZip, LPTSTR strOther, LPTSTR strStreet, LPTSTR strPlace, LPTSTR strState, LPTSTR strCountry, LPTSTR strZip, int &rltNum, LPTSTR rltName1, POINT &rltLoc1, LPTSTR rltName2, POINT &rltLoc2, LPTSTR rltName3, POINT &rltLoc3 ); In VC++ application this is called as below which works successfully. g_hWndGPS=TTGPSGetWnd(); int rltNum=-1; TCHAR rltName[3][256]; POINT rlt ...Show All
SQL Server Mining Access 2003
I created a AS 2005 data source to an Access 2003 database on my PC. The connection tests fine, I can browse the data from AS 2005. But when I try to process the mining model, I get a userid & password error. There is no password on the Access database. When I set up the data source, the wizard wanted a userid and password - the default was Admin - and I left the password blank. The connection tested ok. I tried changing the Impersonation settings, but that gives me a deployment error. Any ideas why the model process can't find a connection Is the AS Client and Server on the same machine Si ...Show All
.NET Development String or binary data would be truncated
Hi, i'm having this litle problem Have this code/ Sql Statement where MSGFile is of type IMAGE on SqlServer 2000 SP4 sSql = "Insert into MSGFiles ( MSGID,MSGFile,MSGFileType,MSGFileName) Values( @MSGID,@MSGFile,@MSGFileType,@MSGFileName)" Dim P As New SqlParameter("@MSGFile", SqlDbType.Image, SQLFile.Length, ParameterDirection.Input, False , 0, 0, Nothing , DataRowVersion.Current, SQLFile) sqlCmd.Parameters.Add("@MSGID", idX) sqlCmd.Parameters.Add(P) sqlCmd.Parameters.Add("@MSGFileType", ficheiro.PostedFile.ContentType) sqlCmd.Parameters.Add("@MSGFileName", fname) If sqlCmd.ExecuteNonQuery() Then .... ...Show All
SQL Server Error in initialization of the report service
I installed the evaluation version of SQL Server 2005 to my Windows XP machine. Everything has worked well. Now I have problem. I installed the reporting service to test the web reporting. In the Report service configuration manager I get three errors: The Web Services Identity indicator is red and pushing Apply button gives the error : ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 8007056B Pushing Initialization button gives the message: There was an error while switching panels. The most likely cause is an error retriewing WMI properties. the exeception de ...Show All
Windows Forms datagrid related question
Dear all, I have one problem with windows datagrid In general when we want to display parent child relation data, we provide a relation between the parent table and child table. So when we click the parent record first it displays the relation name it displays the child records when we click on the relation name, and at a time only the chil ...Show All
Visual Studio Express Editions Integrated Security/Open & Close SQL/Access databases
This thread is based on an exercise in Rick Dobson's book "Beginning SQL Server 2005 Express..." From p447-453 he goes thru how to set it all up. What doesn't seem to be explained are the following tasks/possibilities that leave me a bit perplexed. (1) If u have an existing project which u want to take advantage of this security/connectivity approach do u have to copy all your code and objects so that they reside within the single Security/Application project If so then that means u need a separate security/connectivity encapsulator for each project. Surely not! But I don't know. If the answer is no, meaning that u can wrap ...Show All
Visual C++ Linking error 2001: ... static...
After hours surfing the net not having found anything, I'm really desperate. In my program, my class makes use of static member-variables. And this is what the compiler tells me after linking everything. It detects no compiling errors : Chapter_14_Exercise_3.obj : error LNK2001: unresolved external symbol "public: static int (* line_number::internal_list)[2]" ( internal_list@line_number@@2PAY01HA) Chapter_14_Exercise_3.obj : error LNK2001: unresolved external symbol "public: static int line_number::the_counter" ( the_counter@line_number@@2HA) Chapter_14_Exercise_3.obj : error LNK2001: unresolved external ...Show All
.NET Development Is there a way in regular expressions matching to ...
I'm not sure that this is doable, but I sure wish it was. If so, please point me in the right direction. (Also forgive me if this is the wrong forum and point me the right way on that also.) I will be honest up front. I know just enough about regular expressions to be dangerous. OTH What i've got working is great. My goal is to validate a user enter catalog number in a situation where such numbers are like chinese menus. One from column A, one from B etc. When my user printed out all the combinations to see if I did it correctly the legal inputs ran to 600 pages!-( The expressions themselves aren't all that bad and are built from fragm ...Show All
Windows Forms Header text in datagrid
I have a datagrid with fixed column width and the columns are not resizable. The header text is long than the column width. Does anyone know how to wrap the header text For example, I have a header text "Sample Text". With my current column width, I can only see "Sample Te" in the column header. If I can wrap the header text&n ...Show All
Visual Studio Express Editions Namespaces Using Multiple Project Solutions
Hello All, I am having a bit of a problem concerning Namespaces and multi-project solutions. I have a two project solution file. The first project is a .Net Windows application. This project is a collection of Win Forms and code which accesses the second project. The second project is a Class Library. The Namespaces of these projects are ConvertedFramework and FrameworkCore respectively. The problem is this. I need for the files in FrameworkCore to be able to access the application settings of the ConvertedFramework project for the purposes of retreiving those settings and saving them. I am unsure how to accomplish this other than plac ...Show All
.NET Development .NET Assembly Security
Hi all, just a quick question. Since there is a .NET Reflector written by LR which disassemble an exe/dll file, i can't find anything nor a better solution to get secure. How are we suppose to write a secure .NET app since it can be disassemble Is there a way to do it or perhaps possibility Or what's your recommendation / suggestion Regards, David [.NET NEWBIES] codeveil can disable CLI header http://www.xheo.com/products/enterprise/codeveil/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX vs. WPF
A friend of mine said that Avalon was dropped off and renamed to DirectX 10. Based on the theZBuffer.com, there is no DX10, and from what I know, Avalon has been renamed to WPF. So what's the connection between Avalon, WPF, and DirectX (10 ) Are they sharing the same code, or one's just using another's API Thanks! You are right that Avalon was the codename for WPF (Windows Presentation Foundation). WPF use Direct3D 9 to render a vector based UI. WPF is not dropped as it is one of the three main parts of WinFX. As WPF supports 3D effects you can build 3D games with it but it supports only a limited subset of the functions th ...Show All
SQL Server Updating database workflow question
hi, i have a simple database. to test it i have the database locally and i have the same database in the server. currently when i update the database i copy the whole database (mdf file including the data) to the server. i would like to copy only the tables and not the data to the server. what is the best and easiest way to do it regards, rnv Hi Rnv, SQL Server 2000 2005 2005 CTP Anyone offering additional feedback, please do so; I've been doing this for about 2 years. I typically save a full backup (.bak) [ example is 2005 CTP]: Right-Click the database --> Backup General --> Destination --> ...Show All
Smart Device Development C# and unmanaged C++ library
Hi, I would like to know whether I can create a C# dll that makes calls to C++ unmanaged functions in a C++ library file (not a dll file) If yes, how I know about dllimport and marshaling; I want to know whether a simlar procedure exists for .lib files. Needless to say, my lib file is compiled for smart device and I would like to have one managed dll that does not call another unmanaged dll, this is basically why I am interested in .lib. Thanks, Sorry, it is not possible. Your only options for calling unamanged code from managed is PInvoke (which you know) and COM Interop - not libs. Cheers Daniel ...Show All
