Software Development Network Logo
  • Visual C++
  • Microsoft ISV
  • Windows Live
  • VS Express Editions
  • Visual Studio
  • Visual Basic
  • VS Team System
  • Windows Vista
  • Visual J#
  • Game Technologies
  • Architecture
  • Visual C#
  • Visual FoxPro
  • Smart Device
  • Windows Forms

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

aschreiber

Member List

Mordy
NewASPNETUser
Videojumper
OKCMAN
H_C_X
egyamado
malefly
walter wu
sigge_siw
Keith Farmer
Mike Rorke - MSFT
VB king!
roschi
Beth
AnubhavG
Reagal
Raja_dilly
Mabs Ahmed
Joe A
davidakos
Only Title

aschreiber's Q&A profile

  • Visual C++ inline function

    I have a set of functions that I'd like to make inline using VC++ 2003. The functions are compiled sparately from the calling function. I've attempted by placing inline before the function name and in the prototype statement but the function is not found. Do I need to use IMPORT, extern or something like that I can't seem to find an example anywhere to emulate. Thanks, RON C FUNCTION: inline int index_4 ( int jstr, int kstr, int lstr, int i, int j, int k, int l ) { int index; index = ( i + j + k ) * lstr + ( i + j ) * kstr + i * jstr + l; return( index ); } PROTOTYPE (in another function): inline int index ...Show All

  • SQL Server sql2005:Cannot use SAVE TRANSACTION within a distributed transaction

    Error returned when trying to commit the transaction to a database that is a replication distributor. (sql2005 ctp16) the error I am seeing: Msg 627, Level 16, State 0, Procedure sp_MSmerge_altertable, Line 305 Cannot use SAVE TRANSACTION within a distributed transaction. Anyone encounter transaction problem with replication Thanks. Hi Micky, thanks for your post, just wanted to let you know that your specific issue is actually a known issue in SQL 2005, and is slated to be fixed in the next release of SQL Server.  I'll raise awareness internally about this and point them to your post, but I ...Show All

  • Visual Basic Passing Values & Receiving Events between Forms created on separate threads

    I'm trying to pass values between/among forms created on separate threads..How is it done I believe i need to use a 'Delegate' but i do not know where to put it. I always get the "cross-thread" error. I have looked over the web a gazillion times, even MSDN, etc.. but they don't have a sample for this case. Or is there WHAT I'M TRYING TO ACCOMPLISH: **I use "Imports System.Threading", not the background worker for multithreading.** THE SCENARIO: Basically, i have a SYNCHRONOUS ActiveX Control that, when running, freezes its owner form intermittently for the duration of around 5-10 seconds. So, in ...Show All

  • Visual Studio Tools for Office Help please. I need to protect my work in Microsoft Word.

    Is there any tool/option I can use to restrict people copying/editing/formatting my work I dont want readers clicking on my work and copying and pasting it to another document. Is there a way I can prevent this I know PDF is a good solution, but I want to keep my file DOC for a specific reason. Please get back at me. Thank you for the help. This is not a VSTO-specific quesiton, but I'll see if I can provide some assistance. If you're using Word 2003, select File\Permission\Do Not Distribute... from the menu; the Permission dialog box will appear. Check the Restrict Permission to This Document ...Show All

  • Visual Basic Debugging

    My vb windows form application calls a local web service I created on my computer. I have added a wsdl file to my windows form application which exposes the web service. In debug mode, how do I view my web service code from my windows form application. Fred Herring Hi, I think it might be something like this if yo want to see the application or web service try this 'Show.webservice() ...Show All

  • SQL Server Transferring table data from an ODBC database to a SQL Express database

    I am a SQL newbie.  I have two connected databases that I work with in Visual Web Developer Express or Visual Basic Express.  One is an ODBC master database that contains much table data and the other is my new destination sql express database.  Where I was once very comfortable using the query grid in Access to accomplish almost anything with tables, it seems like now it is much more difficult.  Can someone offer me some simplified advice on how to easily transfer the table data in the ODBC database tables to the sql express database.  I have read sections on BCP and Bulk Insert but so far I have ...Show All

  • Visual C# Read-only wrappers for derived classes

    Can anyone point me to a good method for implementing read-only wrappers around a derived class rather than, for example, a simple collection What I mean is that I have class A which inherits from class B. B is not abstract, so can and will be instantiated on its own. I need to be able to create read-only versions of A and B. The only way I've come up is to have a class ReadOnlyB : B, blocking writes and forwarding reads. That's fine. But for A, if I implement a class ReadOnlyA : A, it has to override not just the members of A, but those of B as well - not nice, especially in a hierarchy 3 or 4 deep. Got to be a better way Thanks. Dou ...Show All

  • Visual Studio Express Editions Find an element in a ComboBox with a list of objects

    I have a class Class clMark as public id As Integer public name As String ............ ............ Public Overrides Function toString() As String toString = me.name End Function Public Overrides Function Equals(ByVal obj As Object) As Boolean If (obj.GetType Is Me.GetType) Then Equals = (Me.id = obj.id) Else Equals = False End If End Function end class And I have a combobox with an array of objects of the clMarca class like this DIM cb as ComboBox = New System.Windows.Forms.ComboBox cb.addRange(<array of clMark>) this ...Show All

  • Windows Forms DataGridView.DataSource: Grid won't display data when set to DataTable

    myDataGridView.DataSource = myDataSet; DataTable newTable = new DataTable (name); //some stuff here to populate newTable myDataSet.Tables.Add(newTable); myDataGridView.Refresh(); myDataGridView.Update(); Why won't this code cause the DataGridView to display the data contained in the DataSet I have also tried forcing the DataSource property to the newTable but this did not help either. Hi, Did you do the databinding via the IDE Wizard If so I think you may do a little more job to load the new datatable. Here is the code for your reference. private void button1_Click(object sender, Ev ...Show All

  • Windows Forms VS Bogging Down - How Do I Stop It

    My Visual Studio is starting to <u><b><color="red">REALLY</color></b></u> bog down to the point that it is becoming unusable. I'm pretty sure the background debugger causes this bogging. I've got a single solution open with 2 projects. One project is a Class Library with 28 classes of varying length. The other project is a small test project ...Show All

  • Visual C++ how can i use the type struct in VISUAL C++??... i'm new in visual c++

    hi! i have a   program in c++ and i want to  do it in visual c++, but i found a problem, in the  code program  made in c++ i use a type struct : struct  ind {   char *c;   int f; }     but i think that in visual c++ doesn’t exist the type struct ,  i'm not sure..... can i use the type struct in VISUAL C++ or what other kind of struct may i use i think that is the main question.... WHAT other type can i use instead of the struct in visual c++ ,  i want to declare two variables of the type ind: ind pob; ind pob2;   so i can use the structure pob[0].c, pob[1].c , pob[1].f ...Show All

  • SQL Server Jump to Report - misdirection

    I have created a baseline folder with several reports, which I use as a "link to" from production folders for a variety of departments. Moreover, I have used a "Jump To Report" configuration as a drill-through to another report. The problem is that when I click on the link it executes the report in the baseline folder versus the report in the production department folder. How do I direct the execution to the appropriate production department folder(s) Thanks in advance for any assistance. The link to the drillthrough report can either be relative to the current report, for ex: detailsr ...Show All

  • Visual Studio Express Editions Where is "press any key to continue."?

    I create my program by click File - New - Project from existing code. The program I created does not have "Press any key to continue" at the end to accept the key from keyboard. I want to make my program to have "Press any key to continue" at the end without adding any code. What can I do You can't - if you want your program to do something, you need to write the code to do it. Do you need help with that, or were you just hoping for that in general to happen by itself so you didn't need to write it You could always create a new wizard for a console app that asks for a key press at th ...Show All

  • Windows Forms How to use a text file as a data source?

    I am working on a small app that needs to use a comma or tab seperated text file as the data source. The file will have the equivelant of 4-5 columns and possibly up to 2000 rows. The app will need to loop through the rows and act on the data in a mail merge style way. What is the best way to go about binding to a control, ...Show All

  • Software Development for Windows Vista Delay Activity and ASP.NET

    I have a workflow that contains two HandleExternalEvent activities and a Delay activity all within a Listen activity. Obviously, when the Listen activity is hit, the workflow instance goes into an idle state. My intent is that if either event is not raised to the workflow within the specified timespan on the delay, an alternate path should be taken. The workflow never comes out of idle after the elapsed delay has passed. When I fire an event to the same workflow, the workflow instance is deserialized from the persistence store and starts up at the appropriate HandleExternalEvent activity without any problem. The workflow instance is hoste ...Show All

©2008 Software Development Network