Software Development Network Logo
  • Visual Studio
  • SQL Server
  • Visual C#
  • Visual FoxPro
  • SharePoint Products
  • VS Team System
  • Visual Basic
  • Windows Forms
  • .NET Development
  • Visual C++
  • Audio and Video
  • Smart Devicet
  • Game Technologies
  • IE Development
  • Windows Vista

Software Development Network >> zdrae's Q&A profile

zdrae

Member List

JamesPMiller
boston_sql92
Wendy S
neurobion
Danilo80
Davids Learning
JD Prasad
ctssoms
a.d.m
MuscleHead
Minway
nick5454
TomasLeung
fishy_swa
WayneSpangler
Eric Waterhouse
Mario M.
lep
Galin Iliev
Romantic_touch
Only Title

zdrae's Q&A profile

  • Smart Device Development Sendto Works on PC but not on PocketPC

    The following piece of code works when run from a PC but the same code does not work when running from a PocketPC (emulator nor device):   Socket mySocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.IP);   byte[] myBytes; string message = "getservers"; System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); myBytes = encoding.GetBytes(message);   try {       mySocket.SendTo(myBytes, new IPEndPoint(IPAddress.Parse("192.168.1.101"), 26980)); } catch (Exception e) {       Debug.WriteLine(e.Message); }   I have tried this code from an actual device a ...Show All

  • SQL Server Help with a special stored procedure

    Hi I have a table there have a primary key, this value have i also in another table as a forreignkey, so good so far. Here it is If the number in may primarykey in table 1 , dosn't exits in table 2 then delete records in table 1 I have made this in a ASP page with a view there list all records where the forreignkey in table 2 are NULL and then delte all records in table one Can i made this as a stored procedure regards alvin You really want a trigger on table 1 to check table 2 before insert. Research INSTEAD OF Insert Triggers. What this will do is instead of inserting a new record into table 1, it will check table 2 for a match. If there is no match, no record is inserted into table 1. It's b ...Show All

  • Visual C# using vb6 component ?

    Hi, Is there a way to use vb6 components in C#, just like in old asp (Server.CreateObject)... I tried with Activator.CreateInstance but didn't worked...is continue to as kfor the reference... Fom dll, in vb6 yes, from the C# directly yes...... But from the DLL in vb6 through C# I can't....and for security reasons in the client side I can't connect directly to the database...Damm it...=) ...Show All

  • Audio and Video Development MFCopyImage

    hi all when copying a YUV (nv12) sample from src to dest using MFCopyImage, for some reason it turns out to be greyscale even though though the original image has color. The UV bytes are not being set properly...anyone else have this issue This sounds like it copied only the Y plane. You might have to make separate calls to copy the U and V planes. (You'll need to do some pointer arithmetic.) I'll do some research and follow up. ---------------------------------------------------------------------------- Mike Wasson, SDK Documentation This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. (c) 2007 Microsoft Corporation. All right ...Show All

  • Visual Studio Express Editions Qns on SQL 2005 EE, use with C# 2005 EE.

    Hi, got qns here regarding SQL database. Can my program with SQL database run correctly on another com using win xp home edition, with only C# 2005 EE installed Is it compulsory for every table in a database to have a primary key Can I extract a data from a specific cell in a database table(click button get data) How do I go about doing it (the simplest n straight forward method) Many Thanks in advance. sure :-) ok, the way the SqlDataReader works is, when you do a while (reader.Read()), this means while there is data...meaning, it will go through each row of data until there is no more data left to be read. so what i mean by the current row is the position that the reader is in. Does that make better sen ...Show All

  • Visual Basic compare datarows

    how do i compare two datarows for eg i have a datarow dr from some dataset ds1 now i want to compare dr with each and every datarow in other dataset ds2 pls send the code in vb.net     (typed from memory) Private function Compare Rows(byval RowA as datarow, byval Rowb as datarow) as boolean  for i as integer = 0 to rowa.table.columns.count-1     if rowa(i) <> rowb(i) then return false next return true end function ...Show All

  • Visual Basic VB6 get function in VB.net

    Instead of using the get function in VB6, what would i use in VB.NET Perhaps if you state what your trying to do rather than translate the vb 6 code, there'd be a better .Net answer. But to answer your last question, #1 is the "filehandle" to the file you opened. ...Show All

  • Visual Basic Hoe to handle multiple pages of graphics in VS2005

    Hi, I'm working on a graphics program which permits the user to select a drawing from a table, add required dimensions and other information, save the data in Sql tables, then produce a PDF file, and/or print out the page. Usually only one page is required with each page having a max of 6 drawings, however, on occasions there may be more than six, so a number of pages would be needed. So far I have reached the point where I am satisfied with the result, if drawings are <= 6, however, I am completely at a loss as to how to handle multiple pages. At present I am using the Paint Event to allow the user to see the result prior to saving or printing. However the print out takes about 15 seconds. Using Print Page Event, I believe ...Show All

  • Windows Forms PROPERTIES IN A CUSTOM CONTROLS

    How I can do so that the properties that I defined for a custom control, it takes so much from the Code Behind as from the window from Properties, that is where I have problems. Thanks for any help, Claudia I am afraid that I do not quite follow Claudia... you say you’ve got a custom control and what Want to add a property or two to it Or is it you want to set properties to default values Or is it you want them to show up in the Properties window ...Show All

  • SQL Server AS2K5. Conversion Bool -> int makes true -> (-1).

    AS2K5 does convertion from bool to int another way as AS2K did it. I this a bug or by design No, it is in MDX. I have ported some AS calculated member expressions from Shilon to the Yukon and have accounted this uncompartibility issue. ...Show All

  • Visual C# VS2005 Pro/Developer and SQL Server 2005 Developer

    why is that VS 2005 is supposed to only work with SQL Server Express edition when i say work i mean, directly adding new sql db's etc to app_data. I have VS05 Pro and SQL 05 developer, and they wont 'talk' to each other..isnt this stupid I tried to drop a createUserWizard from the toolbar, and just tried to run it, but it errors out when you try to create a user because it doesnt recognize sql 05 developer. the aspnetdb.mdf does not get created. is there a way around this more importantly, how do i get vs 05 to be able to directly create a db on sql 05 developer by adding a new db in the app_data folder VS2005 talks with all versions of SQL. However the initial release of the membership API (which is what you are trying to configu ...Show All

  • Visual Basic IRunningObjectTable.Register Example?

    Does anyone have an example of how to register an automation server in the ROT (Runtime Object Table) using IRunningObjectTable.Register and how to revoke it using IRunningObjectTable.Revoke Thanks, I've made some progress on this, but I've run into an obstacle I haven't found a solution for. The following code works fine within a single AppDomain; however, when I try to use it across AppDomains I get an error that says: Unable to cast COM object of type 'System.__ComObject' to class type <>. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for th ...Show All

  • .NET Development Al.exe and satellite assemblies

      Hello. For my application I have created an satellite assembly for a cultural reference, for example "es" or "de". The point is that mentioned assembly it does not have assigned the cultural reference for which was destined. I have used the tools "Resgen.exe", to create the resources, and "Al.exe" to create the satellite assembly. Respect to the Al.exe tool I have not had problems previously. The command line for Al.exe (v 8.0.50727.42) is the following one: Al.exe /target:library /embed:MyApp.es.resources /culture:es /out:MyApp.resources.dll /template:MyApp.exe Why the assembly contains a neutral cultural reference   From already I thank for the time used on my consultation.   Martin ...Show All

  • SQL Server How to enable clients to access the same DB via SQL Express

    Hi to all! My problem comes from this situation: I have two PC connected via a network calble; on the first I have SQL Server 2005 Express, an MDF data file in a shared directory under the "Document and Settings" path, and my program written in VB .NET 2005. On the second PC I have only my program, and I would like to have it connect to and work on the MDF on the first PC. The program on the first PC works well and uses a connection string like the following: Data Source=.\SQLEXPRESS;AttachDbFilename=<path>\<name>.mdf;;Integrated Security=True;User Instance=True I am able to access to SQL Express from the second PC (I have enabled the Client to use the right TCP ports, told the firewall to let them work and enabled ...Show All

  • Visual C++ error LNK2019 :/

    Hey everybody I have some linking issues with VS 2005. I have created a static library "V2D", this is a library of a simple 2D Vector. I have compiled it and in the V2D project's debug dir I got the v2d.lib. Now I want to try and use this V2D lib from another project so I have created a win32 console app testing project. I have added the path to the V2D.h file and the path to the V2D.lib file and when i try to build the testing project I get this error: main.obj : error LNK2019: unresolved external symbol "public: __thiscall V2D::~V2D(void)" ( 1V2D@@QAE@XZ) referenced in function _main this is the testing project main.cpp file #include <v2d.h> void main() { V2D v(1,1); ...Show All

©2008 Software Development Network