Francisco Tavares's Q&A profile
.NET Development sending a custom object to a web service
hello, i have a web service that containts a method which takes a custom object (say of type food) now i want to to consume this web service from a c# windows app. so when i call this method an error occurs ... knowing that i included a dll class library in both ends(win app and web service) so what can i do whats the exact error I am guessing that you have an object in your DLL that you are trying to pass to the webservice webmethod. Even though these objects have the same name and properties, VS does not see them as the same type (they are different namespaces) and you are getting a type mismatch error. You can't do this. You need to use the object from the VS generated proxy class. ...Show All
SQL Server Limit rows to 25 in the body
Im trying to limit the body of the report to 25 rows before page break. Any help would be appreciated. Hi, Erik, Look for the Page Breaks section in this topic: http://msdn2.microsoft.com/en-us/library/ms157328.aspx --------------------------------------------------------------------------- Download the latest Books Online update: http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Smart Device Development icmpsendecho() and Icmpapi.h
Hi all, i have written a little MFC app and am just trying to get an icmpsendecho() to work however i get this error: fatal error C1083: Cannot open include file: 'Icmpapi.h': No such file or directory does anyone know how to get it working i thought that the library was Iphlpapi.lib which i have included in the build as i am using other IPHelper functions. I hope someone can help, thanks Martin Hi Martin, It seems that problem is in library. In Windows CE .NET 4.1 and later, you have to compile with 'Iphlpapi.dll', not linking to Iphlpapi.lib. For more information see article http://msdn2.microsoft.com/en-us/library/ms927411.aspx . I hope it is not very late! ...Show All
Visual C++ URGENT: Project out of date error
Someone please help! I've been pulling my hair out all day trying to figure out what the hell is going on. I have a project due in a week but my compiler won't compile a simple "hello world" project. It says my project's out of date and spits this out: 'project1.exe': Loaded 'C:\Documents and Settings\dbm\My Documents\Visual Studio Projects\project1\project1\Debug\project1.exe', Symbols loaded. 'project1.exe': Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll', No symbols loaded. 'project1.exe': Loaded 'C:\WINDOWS\SYSTEM32\kernel32.dll', No symbols loaded. 'project1.exe': Loaded 'C:\WINDOWS\SYSTEM32\shimeng.dll', No symbols loaded. 'project1.exe': Unloaded 'C:\WINDOWS\SYSTEM32\shimeng.dll' The program '[2980] project1.exe: Native' ha ...Show All
Windows Forms How to access controls on another form
Hi, I need to access a control that is on a separate form, I have 2 forms, my main form and the details form,so my main form calls my details form, but from my details form I need to access some of the information on the datagrid that is on the main form, I was thinking on using properties but there are too many fields that I need to access, so I was wondering if there is another way. Thanks. Hi You can pass the MainForm reference to the DetailsForm ctor and also have a few public methods/properties that could get you want from the MainForm. For instance.... class DetailsForm : Form { private MainForm _mainForm; public DetailsForm(MainForm mainForm) { _mainForm = mainForm; } // Whe ...Show All
SQL Server SQL Server Agent: Proxy account does not work
Hi, everybody I have a CmdExe step in my job which has to access a network file share. I try to specify a proxy to make it run under my domain account. The code for the step looks like this: EXEC @ReturnCode = msdb . dbo . sp_add_jobstep @job_id = @jobId , @step_name = N 'Zip the database backups' , @step_id = 2 , @cmdexec_success_code = 0 , @on_success_action = 1 , @on_success_step_id = 0 , @on_fail_action = 2 , @on_fail_step_id = 0 , @retry_attempts = 0 , @retry_interval = 0 , @os_run_priority = 0 , @subsystem = N 'CmdExec' , @command = N 'zip -r <network drive path> <local path>' , @flags = 0 , @proxy_name = N 'CmdExec Proxy' CmdExec Proxy is defined like this: ...Show All
Visual Studio Express Editions header file problem
Hi everyone, In the below header file, there is a function which is implemented in the header file . Why is it really possible to implement functions in header file Another question is that what is the function of #ifdef and #endif in the below codes I will appreciate any helps. 1 // Fig. 10.7: Increment.h 2 // Definition of class Increment. 3 #ifndef INCREMENT_H 4 #define INCREMENT_H 5 6 class Increment 7 { 8 public : 9 Increment( int c = 0 , int i = 1 ); // default constructor 10 ...Show All
Software Development for Windows Vista Using DeviceIOControl under Limited user account
Dear all, Under Windows XP, the caller of DeviceIOControl must belong to Administrators group or have administrator privilege. But under Vista, it seems no this restriction. Even with limited user account, the DeviceIOControl function still works well without modifying anything about access right. So is this behavior normal or not Thank you. Best Regard, HHWu Under Windows Vista (home/pro editions), the default security policy for optical drives is to allow this access. This is by design. Of course, we provide an easy group policy method to set custom ACLs too, so you can override this in a corporate setting. Thanks, . ...Show All
Visual C++ LNK2001: using unmanangedC++ in manC++
Hi, i'm writing a new user-interface for a small software-company. The old interface should be replaced by the new one, the "inner core" should stay. The old program was written in unmanaged C++, but now I'm writing the user-interface in C#, so I have to use class wrappers. While building the managed C++-project (in a solution with the unman. C++-projects) there a some errors. For example: Error error LNK2001: unresolved external symbol ___argv nafxcwd.lib and Error error LNK2001: unresolved external symbol ___argc nafxcwd.lib Another one: Error error LNK2001: unresolved external symbol __pgmptr db.lib [db is one of the old unmanaged C++-projects] The settings are the following: Linker->Input->Add. Dep ...Show All
.NET Development Installing .net Framework 3.0 fails (Language Pack related error)
Hello, Installing fmwk3 the installation fails and the log in dd_dotnetfx3error.txt says: [01/10/07,23:37:48] Microsoft .NET Framework 3.0 Language Pack - ESN: [2] Error code 1603 for this component means "Error grave durante la instalacion. " [01/10/07,23:37:48] Microsoft .NET Framework 3.0 Language Pack - ESN: [2] Setup Failed on component Microsoft .NET Framework 3.0 Language Pack - ESN [01/10/07,23:37:48] Microsoft .NET Framework 3.0 Language Pack - ESN: [2] Error code 1603 for this component means "Error grave durante la instalacion. " [01/10/07,23:37:48] Microsoft .NET Framework 3.0 Language Pack - ESN: [2] Setup Failed on component Microsoft .NET Framework 3.0 Language Pack - ESN [01/10/07,23:38:37] WapUI: ...Show All
SQL Server Migrating a column from ntext to XML
After SQL Server 2005 migration, I'm trying to change my ntext column to XML type. The "alter table TableName alter column XMLCol xml" command throw this error : XML parsing: line 1, character 39, unable to switch the encoding 1. Do I have to reformat my nText column before the migration to XML type 2. Is there a way to create an XML data type with UFT-8 in SQL Server 2005 Thank you for your help Thank you for your help Converting it to varchar(max) is still having the potential to lead to encoding issues or data corruption. Instead the column should be converted to varbinary(max) first and then to XML. Best regards Michael ...Show All
Visual Studio 2008 (Pre-release) Reliable Sessions - The Image Transfer Demonstration
Trying to download this sample application, but the zip file is corrupt. Has anyone managed to get a copy of this Can someone post it here Regards, Brett Hardman See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=550638&SiteID=1 (same problem on one of the labs). It says someone was working on updating the lab, as of Sept 1. ...Show All
Windows Forms RichTextBox question
I am using odbc driver to manipulate records to and from a Paradox database. In the Database I have two columns that are Paradox 5.0 memo fields, they have been formatted with a Rich Edit field in Delphi7 . I can view the data in the fields in my C# app in MSVS 2005 with a RichTextBox control except that the formatting shows in the text box as well as the data. Like this: {\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}{\f1\fnil MS Sans Serif;}} \viewkind4\uc1\pard\lang1033\b\f0\fs16 3/4x3/8--63/4x4/78--One X Leather--One 1/2" wedge. Hook heels around instead of cutting off.\f1\par } Is there a way to get the richtextbox to process the formatting Thanks Jon (Moderator: Thread moved to thi ...Show All
SQL Server Cannot find ODBC drivers
I'm using dreamweaver to create a site, and I am trying to get a database to work with it. I'm using asp and to connect to the dsn i need odbc drivers. When i open the box to set up the connection, none are listed. however, when i tried to install mdac 2.8, it said it could not install because it is already running on my system. Where are my drivers help please! Are you using the Jet driver Suggest you post another thread in this forum for the quesiton as i am not a jet expert. Maybe someone else can help you on it. :) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite Collision Detection
I have a 2D game which I wrote some simple collision detection for, which works like the bounding box example. It detects collisions very well, the problem I am having is moving the objects back so that they are not overlapping. They move 10 pixels a move, so when they collide, they overlap. I want to be able to detect a collision, and move the object that caused the collision back to the point just before they intercept, i.e. not the last position, but somewhere inbetween the last move and this one where the two do not intersect. I hope that makes sense. S Hughes (Clarity Consulting www.claritycon.com) Unfortunately I don't have the exact code to hand. I move it ten pixels a turn, so not moving it if ...Show All
