Al Zuniga's Q&A profile
Smart Device Development Plug-in code issue with CF 2.0
I'm trying load a plug-in and I'm using CF 2.0 The path is: C:\NewIntel\MCU\Plugin1\bin\Debug Interfaces.dll which does load Interfaces.dll but not Plugin1.dll which is in the same path for the Storage Card running the emulator. Look at FindPlugins function for the code that does Assembly.LoadFrom("Plugin1.dll"). This code works fine for for the Desktop framework 2.0. What can I do to fix it Error... System.IO.IOException was unhandled Message="File or assembly name 'Plugin1.dll', or one of its dependencies, was not found." StackTrace: at System.Reflection.Assembly.LoadFrom() at PluginServices.FindPlugins() at WCEMCU.frmMCU.frmMCU_Load() at System.Windows.Forms.Form.OnLoad() at System.Windows.Forms. ...Show All
Windows Forms Need global reference to main form
(I originally posted this in the Visual C++ Express forums but I realise that I would probably get a better response here) Ok, so I've got a form with a bunch of ComboBoxes that are created at runtime instead of at design time. I want to give each of those ComboBoxes the same ContextMenu, which is a member of my MainForm: public ref class MainForm : public System::Windows::Forms::Form { // ... private: ContextMenuStrip^ myComboBoxContextMenu; // ... } I figured I should create a sub-class of ComboBox which automatically assigns the context menu in the constructor: ref class MyComboBox : public ComboBox { public: MyComboBox() { this->ContextMenu = /* reference to context menu in M ...Show All
SQL Server Getting a Package's ExecutionID
Hello everyone I'm logging the execution of my package into a SQL SERVER table. Everything works right. I'm also executing this package using a web service, I'd like to retrive the package's executionId after it is executed. By the way, i'm using a Microsft.SqlServer.Dts.Runtime.Package object but i haven't found any property that could give this. any clue thanks a lot Have you searched this forum for executionID There has been many threads around this topic and the current version of SSIS' shortcomings with respect to logging the execution ID. ...Show All
SQL Server Using the results of a script component
Hi There, I have to populate data from two oracle databases. I have a list of ids from one table and I have to query those ids in the second table (in a different database) and populate that data into a sql server. This is the approach I have taken... I have populated the ids into a recordset destination. I use a script component to extract those ids (from an object) into an ouput buffer. I am wondering how I can iterate throu these ids and query the table in the second database for these ids. Can somebody please help me Thanks a lot!! Table in DB2 has 600k rows in it. List of Ids is 1200. Wouldn't it be a performance hit if I use a lookup transformation for this requirement And is it same like a select statement w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX merge module for windows installer
Hiya, I developed a small application that uses DirectX... Create an installer wizard using VS2005 ( the deployment project ). Is there any DirectX merge module there I don't want to pack a 200Kb setup + 54Mb of the DirectX redist... what I want is the wizard to connect Microsoft and download the latests DirectX like it does with the .NET 2.0/Windows Installer 3.1 stub! Any solution to this please ps: I know I could use DirectSetup, but I WANT to do it inside the installer pointing to a web site. thx Even if there were a technical solution it would not match the license agreement for the Redist. You don’t need to put anything from the redist folder in your setup. Only the parts that you ...Show All
Visual Basic Taking user input from MS-Word to plain text
I have a part of a Visual basic application that takes user input and formats it so that another application (Apache Ant) can access it. The format i need for the second application is this: title = sometitle author = someauthor I have tried to have the user input the values in ms word like this :title = sometitle :author = someauthor Then when the a button in the application is clicked, the application uses .range.Text.Trim.Split(":") to create an array with one string for each pair of values. I then put use RichTextBox1.appendText(textArray(i)) within a "for loop" to write teh information to a textbox. Then I try to save the info in the textbox as a plain text file. The only problem is that when I ...Show All
Software Development for Windows Vista Remote Desktop still an issue
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. 123 is ERROR_INVALID_NAME ("The filename, directory name, or volume label syntax is incorrect"). Check the command line / exe path you are passing it. Also, keep in mind that Local System does not have privileges to access network paths, and does not have the mapped drives t ...Show All
SQL Server Bulk insert errors
Hi. I am trying following procedure: I have table: CREATE TABLE [dbo].[organiz] ( [cislo_subjektu] [int] NULL , [reference_subjektu] [varchar] (30) COLLATE SQL_Czech_CP1250_CI_AS NULL , [nazev_subjektu] [varchar] (100) COLLATE SQL_Czech_CP1250_CI_AS NULL , [nazev_zkraceny] [varchar] (40) COLLATE SQL_Czech_CP1250_CI_AS NULL , [ulice] [char] (40) COLLATE SQL_Czech_CP1250_CI_AS NULL , [psc] [char] (15) COLLATE SQL_Czech_CP1250_CI_AS NULL , [misto] [char] (40) COLLATE SQL_Czech_CP1250_CI_AS NULL , [ico] [char] (15) COLLATE SQL_Czech_CP1250_CI_AS NULL , [dic] [char] (15) COLLATE SQL_Czech_CP1250_CI_AS NULL , [uverovy_limit] [money] NULL , [stav_limitu] [money] NULL ) ON [PRIMARY] GO Format File: < xml version="1.0& ...Show All
.NET Development direct network traffic to specific network address
I am developing software for a machine which will have 2 internet connected network interfaces. The first is a DSL broadband connection, the other is a GPRS wireless connection. How can I prevent ALL applications running on the machine from sending and receiving packets over the GPRS connection, except for the specific application I am writing The ideal solution would be to only allow packets being sent and received from a specific IP address on the internet, to pass through the GPRS connection, but everything else goes over the DSL... Any ideas Thanks Alter the routing table the artical at http://www.realdn.net/msblog/PermaLink,guid,864b265c-1615-43bd-81af-de13b5fda780.aspx seemed quite infor ...Show All
Visual Basic html editing problams
i have create a file : Imports System.io ..... System.IO.File.Create( "C:\filename.html" ) now i want to edit it : <html> bla </html> i know that i can use Streamwriter but Dim StreamW As StreamWriter streamw.write("<html>bla</html>") doesnt work what shold i do to wirte into html / txt files with stream writer o so FileStream make files and i changed the post right after you post yours i guess ... and i dont really understand you can you explain about filestream ...Show All
Visual Studio Express Editions cannot get specific line into textbox from TXT
is there any way to search a TXT file for a specific string or take a specific line from it I have had my application generate a file based on what the user entered in all the text fields. now i want it to load the information back in for editing. Example: i've got a file called server.cfg (cfg is same as TXT); the following is the first few lines from the file. //============================================== //This file was generated by S.O.B's Server Tool //============================================== deathmatch 1 set hostname S.O.B's House of Frags rcon_password doodle11 fraglimit 30 timelimit 30 ----end of snippet----- i need it to take the line "set hostname S.O.B's House of Frags", and chop off every ...Show All
Software Development for Windows Vista SQLPersistenceService vs Non MSSQL DB
Can we use SQLPersistenceService or TrackingService with databases other than MSSQL Server How can we do that Thanks in advance. Hi Timothy, No you cannot - SqlPersistance and SqlTracking are specifically implemented to operate with SQL Server. You can derive from the base classes and implement a service compatible with any other DB server, but the out-of-box services cannot be modified to do this. Thanks, Angel ...Show All
Visual C# Create DataTable in Class
I have a class file and I want to create a Datatable in it.....How would i do this....Do i create the table in the property or would i need to have like a CreateTable function pretty much yes :-) rule of thumb is: Have a method which does tasks, in this case, create and return the datatable Properties to be used as getters and or setters, to get or set the private property in the class in question The "outside" class to be able to create an instance of this class which can then access its public functions/methods to do tasks. ...Show All
.NET Development FindIndex() method
Hi, I've read the msdn library about this method and a sample code. I didn't quite understand it. I made an object of List: List<ListViewItems> numbers = new List<ListViewItems> I want do add an item as a subItem to the listview control. The item i wanna add should added behind an element that matches the criteria. Im trying to find the index of the element so i can add it like this: this.numbers[index].SubItems[2].Text = "Done"; But im having a little problem using the numbers.FindIndex() method. This is the method im trying to call in the FindIndex() method like this: number.FindIndex(FindIndexOfListViewItem) private int FindIndexOfListViewItem(int index) { for (int i = 0; i < this.listViewItems.Count; i++) { s ...Show All
Commerce Server Accessing Addresses in Total pipeline
I'm trying to write a custom pipeline component, I've read all of Max's posts on everything I could possibly want to know about pipelines. I'm starting from the MinMaxShipping SDK example and am running into a problem. Basically what I want to do is assess at the Tax stage whether the billing address is in the same state, and if so apply a standard state tax rate to the entire order. I finally have been able to access an address ID, but the Addresses IDictionary (setup in the OrderPipelineMappings.xml) always has Count of 0. I had considered getting the address and putting it in the context, but the pipeline is being called from the BasketHelper.RunTotalPipeline() method and I am not certain (A) whether this method is doing anything else ...Show All
