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

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

Angel38

Member List

Tryin2Bgood
Billy Porter
Right Pilot
bhavu
Kaiser28
UncleSam89
AlanKohl
J. Lewis
mark.b
Raptorix
ShadowRayz
White Hawk
Kamen
Fluxtah
Kfoutts
nzmike
TruePsion
J. Aldrin
Reza Bemanian
William Xie
Only Title

Angel38's Q&A profile

  • Visual C# DllImport from C#

    Hi All, I have finished my hard job of porting a VC6 project to VC8 but now I have a problem in using functions from C#. This is the declaration: [ DllImport ( "Test.dll" , CallingConvention = CallingConvention .Cdecl)] public static extern int MyFunction(........... ); but when I use MyFunction I have following error: System.DllNotFoundException : Unable to load DLL Test.dll': Routine di inizializzazione della libreria di collegamento dinamico (DLL) non riuscita. (Exception from HRESULT: 0x8007045A) Thanx in advance for your time! Marcello Hi, I have copied dll and its dependencies in debug folder and used DllImport but the result is the same. Is it possible ...Show All

  • Visual Studio Express Editions How to make an auto updating program?

    Hi, I am very new to Visual Basic, and programming for that matter.   I was wondering how I could make an auto updating program. I searched for it and saw some sort of components, but didnt understand how to use it. If anyone could help me that would be useful. I want to have a program that with one click will synchronize a folder with one on the internet. That includes deleting files, adding new ones, and if files have changed, updating those.   Thanks, rohan I was also experementing with this. Does anyone know of a simple way to change from autoupdate to command driven ill take to a new post if necesssary thanks -Craig C ...Show All

  • Visual C++ Problem using #import with ADODB in VS2005

    I have a VS2003 project that I am migrating to VS2005. It currently compiles just fine under VS2003, but when I try to compile it under VS2005, I get a whole slew of C2327 errors. The root cause appears to be the different way that VS2005 handles nested classes. However, the code that the compiler is having a problem with is generated by VS itself as a result of a #import: #import "C:\Program Files\Common Files\System\ado\msado25.tlb" rename( "EOF" , "adoEOF" ) rename( "BOF" , "adoBOF" ) rename_namespace( "ADODB" ) An example of the error that I receive is: error C2327: 'ADODB::_ADO::Properties' : is not a type name, static, or enumerator Has anyone else encoun ...Show All

  • SQL Server Problem Deleting Duplicate Data

    I have a table that contains more than 10,000 rows of duplicate data. The script below copies the data to a temp table then deletes from the original table. My problem is that after it runs, I now have 122 rows of triplicate data (but dups are gone). If I rerun the script, it doesn't see the triplicate data and returns 0 rows. I've use three different versions of delete dup row scripts with the same result. There are no triggers or constraints on the table, not even a primary key. What am I missing ------------------------------------------------------------------- /********************************************** Delete Duplicate Data **********************************************/ --Create temp table to hold duplicate data CREATE TAB ...Show All

  • .NET Development Cannot load type ...

    Hi, i have a problem. I have a class to do remoting, but i can't do it. The class is: namespace PoolHCService { public class RemoteHCPoolRef : MarshalByRefObject { } } In the server app.config i have: <configuration> <system.runtime.remoting> <application name="RemotePoolServer"> <service> <wellknown mode="Singleton" type="PoolHCService.RemoteHCPoolRef, PoolHCService" objectUri="RemotePool" /> </service> <channels> <channel ref ="http" port="7782"> <serverProviders> <formatter ref ="soap" typeFilterLevel="Fu ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problems with rendering

    Hello, I've already wrote about this problem earlier but now I attaching simplified source code - [here] . Problem is (as you can see on this screenshot ) with alphablending and rendering on RenderTarget2D. How can I fix how that text on right look like Remark: It have to work even with colored font or pictures, not only with white font. Thanks for every help! And sorry for my English. Here's code from that zip file: Imports Microsoft.Xna.Framework Imports Microsoft.Xna.Framework.Audio Imports Microsoft.Xna.Framework.Content Imports Microsoft.Xna.Framework.Graphics Imports Microsoft.Xna.Framework.Input Imports Microsoft.Xna.Framework.Storage Namespace Project     Module Program       ...Show All

  • Visual Studio Express Editions dates and null values

    My column in sql is of a date data type. I have a textbox that a user can enter a date when certain parameters in the program are met. On occasion a date does not have to be entered in the textbox. This is where I have a problem. The column can accept null values but I am not sure how to program this part. I have a date variable = cdate(txtbox1.text). If nothing is entered in the textbox I get an error message of "can't convert "" to a date) Any help would be appreciated. just skip it in this case or just give a DBNull value to the datatime parameter in SQL when you are creating a parameter collection or in your INSERT/UPDATE statement. ...Show All

  • Visual Basic Replace in SQL on Access Database

    Hello evrybody, I need to perform an update on a table stored in an Access Database (Access 2000) I have this code: Dim cn As New ADODB.Connection cn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\<folder>\<DBName>.mdb;Persist Security Info=False;" cn.Execute "UPDATE Synch_LogFile SET Flags = Replace(Flags, '+', 'x') WHERE ID IN (SELECT ID FROM Synch_LogFile_xml)" This works if I connect to SQL Server. To have it work on a DBF Table I had to replace the ' replace ' command with ' StrTran ' Is there another syntax for Access If I run this code in a VBA module in Access, it works, but not in my VB program. Any suggestions Replace should work... try using " instead of ' ...Show All

  • SQL Server Log shipping

    Can stand by server in log shipping host production database used by other applications if yes, what is the effect of log shipping on other databases I am not planning to use the database for which i am log shipping. The server i am planning to use as secondary server in log shipping already has production databases (not involved in log shipping). Will log shipping affect performance of the secondary server ...Show All

  • Visual Studio 2008 (Pre-release) RowDefinition.Height=Auto => ActualHeight = ?

    Is there any chance to find out the real height of a row having its height set to "*" Thanks. you can bind the to value to something like this <DoubleAnimation ... To= {Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}, Path=RowDefinitions[2].ActualHeight } /> ...Show All

  • SQL Server Is it possible to have more than one table footer rows ?

    Well, we can add another table footer row by right-clicking on the footer row of the table and select, Inser Row Above, or, Insert Row Below. But, I want to set different values to same properties of rows. Such as; Row3.RepeatOnNewPage = False Row4.RepeatOnNewPage = True What do you say -SMang the Frustrated Developer SMang, You can't hide your table rows independently with the RepeatOnNewPage, but you can set the rows "hidden" property to true or false. The catch here is that you will need to tie it to a toggle item. Ham ...Show All

  • Windows Forms DataBound DateTimePicker/ComboBox Events

    Events on Databound controls that have their Visible Property set to false at DesignTime do not fire events. I was told this was part of their design. I accept that fact. But controls that have Visible set to true at design time and then Visible gets set to false at runtime, will fire events even though Visible is false. Question 1: Why does having Visible = false at Runtime and Design time behave differently Question 2: What internal happenings occur that make the control start firing events and can I trigger this internal change (i.e Can I force a Control with Visible = false at Design fire its events or visa versa can I make a control with Visible = false at runtime not fire events) How to Repeat: I attached a simple ...Show All

  • .NET Development Binary serializing an object which composites an interface field without serializing the interface implementor

    I want to serialize an object which composites an interface. While serializing the actual class, I do not want to serialize the object that implements this interface. I just want to keep its reference and pass it to the serialized class. Here is an example [ Serializable ] public class Sample { private string _name; private IInterface _sampleImplementation; public Sample(IInterface interface) { _sampleImplementation = interface; } } When I use custom serialization by implementing ISerializable, in the GetObjectData method anything I add to the SerializationInfo gets serialized automatically. I just want to keep the reference of the object that implements the IInterface and pass it to ...Show All

  • .NET Development Notification when managed thread exits

    The first managed frame on a thread is usually 'Main'. Can I be notified when this frame 'steps out' I have tried to create stepper on that frame, but it does not seem to work. I need this for two things: I would like to 'inject' a call to { System.Console.WriteLine(“Press any Enter to continue...”); System.Console.ReadLine(); } so that when a console application exits, I can still see the output. Application is kept alive because of worker threads. When the frame 'Main' steps out, ExitThread callback does not occur because native thread is still running. However, I want to remove the thread from my data structures anyway so that I do not attempt to access it. I'm ...Show All

  • Visual Studio Team System Custom Control Question - Is there a way to capture the work item save 'event'?

    Hello, We are creating a custom control to enter time worked on a specific work item. I have the control created and displaying in the work item. If possible, I would like to capture the work item save event to save my time entry instead of having a separate save button within my control. However, it appears that "FieldChanged" is the only work item event that is available to me. I've thought about leveraging the WorkItemChangedEvent from TFS somehow, but this feels a little too clunky. Are there any other approached I am missing Thanks in advance ... bbossi In this case I would prefer subscribing to WorkItemChangedEvent and implement your custom logic on receiving a notification ab ...Show All

©2008 Software Development Network