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

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

shimshon

Member List

TalhaAziz
mahdi
Nisa
kitnos
Mark Benningfield
GeoComeProgrammer
dragoncells
widd
battlestar 2007
pessi
BilalShouman
Dasaprakash
CBHCMC
Pitchec0934
Ed de los Reyes
ajduck1
CaptainSmudge
Brian Foley
fcatacutan
Matt Deane
Only Title

shimshon's Q&A profile

  • Visual Studio Tools for Office _ComObject specified cast exception calling add-in interface method in external app.

    I have created Outlook add-in that implements my defined interface IExposedClass (among other things for exposing some methods from add-in also). In external app (automating Outlook): object addInObj = isentrisAddIn.Object; MyExcelAddin1.IExposedClass addInExposedAgain = (MyExcelAddin1.IExposedClass)addInObj; object temp = addInExposedAgain.GetAppointments(); // Call a method on addin object DataTable dt = (DataTable) objectTemp; // objectTemp is _ComObject type calling some method, add-in that should return complex data type (eg.DataTable). While doing cast to DataTable getting invalid cast exception. The same result happens if I call GetAdressBookDT() method. In this case scenarion marshaling described on various articles ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. is ColoredVertex still bugged in BasicEffet ?

    Hello, When i render a vertex buffer (with VertexPositionColorTexture points) the triangles are black. I have basicEffect.VertexColorEnable set to true. When i render the vertexbuffer with VertexPositionNormalTexture and VertexColorEnable to false, i get the correct rendering with the texture. I'd like to use the vertex color to modulate the texture color and use the alpha as well. I read that the coloredVertex was broken in beta and that it was trying to be fixed for release. My question is: has anyone managed to make it work or is it known broken for now Thanks. BasicEffect works fine without normals, as long as you don't turn lighting on. You can't turn lighting on unless you have ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. post processing shader

    hi, i want to learn how to write post processing shader. so i have a few questions. when i tried to figure out, how post processing shader are working i saw a script in an effect technique. are this scripts used to redirect the rendering process into a texture instead of rendering the pixels to the back buffer when i want to post process a final scene, do i need to draw the scene onto a rectangle i mean do i have to render to primitives and map the final scene onto these primitives in order to post process thx a lot! I just re-use the original depth buffer; it works fine. Of course, if you want to preserve the contents of that across your calls, you have to copy and restore it, or create a new depth ...Show All

  • Visual Studio Express Editions using namespace.

    I am using C# express IDE. I want to write a short program, but it has some error. using System.Net.Sockets Socket sock = new Socket( ..... ); // can NOT pass compiler. Error: 'Socket' is a 'namespace' but is used like a 'type' ////////////////////////////// System.Net.Sockets. Socket sock1 = new System.Net.Sockets. Socket (.... ); // OK. Why the first one can't pass compiler Thanks. Try doing this. System.Net.Sockets.Socket MySocket = new Socket(); System.Net.Sockets.Socket MySocket = new System.Net.Sockets.Socket(); Socket MySocket = new System.Net.Sockets.Socket(); Socket MySocket = new Socket(); Try doing all of those, then see what happens. There migh ...Show All

  • Visual Basic On key press

    How would I execute some code on a key press even when my app is not the active app You would pobably need to do a search on something called Keyboard Hooking, this will probably be what you trying to achieve. ...Show All

  • SQL Server with ssis :flat file importing data problem

    Hello, I have a problem with some in a file. when i excute ma package to import data with my *.cvs file ssis bloqued le data flow in the line number 1042 and output this error : column delimiter note found for the column 50 wich is the last column . How can i resolve this probleme please. Thanks all well i try to change the delimiter to just LF and to change {ctr}-{lf} to just {LF} and it's work now thanks for your help i think that for some lines i haven't the correct delimiter in the end of row ...Show All

  • Visual Studio 2008 (Pre-release) InstanceContext initialization, IContractBehavior and IContractBehaviorAttribute

    I want to basically hook into InstanceContext initialization and, via what little I could find in the documentation , IContractBehavior seems to be the way to do it. So, first question is: is this the right approach If so, the documentation for IContractBehavior claims that there are two ways to hook the behavior into the flow of things: Programattically to add it before ServiceHost.Open. Implement a custom IContractBehaviorAttribute. I'd rather not do option #1 because it just feels so anti-configuration/declarative which is what seems  to be one of the great things about WCF. However, given the lack of documentation around IContractBehaviorAttribute, I'm lead to believe it's not a much better route because y ...Show All

  • SQL Server Survey Application: Multiple Charts on one Report

    I have written a custom survey application and am currently using ZedGraph in my reports for charting purposes. For example, let's say the survey contains ten questions...the report would then display each question and a tally of the answers for each question. Along with the tally I am producing a chart that serves as a graphical representation of the answer tally. Example: Question 1: What is your age range 10-20: 15 21-30: 20 31-40: 35 41-50: 3 <<Bar or Pie Chart goes here>> Question 2: What is your gender Male: 50 Femaile: 23 <<Bar or Pie Chart goes here>> Right now I am using a stored procedure that returns two datatables (into a dataset). The first datatable contains the questions, and the second datatable cont ...Show All

  • Visual C# How to build a global connection with ODBC?

    I could not create a global connection with ODBC. It needs to identify in a method, not in a class out of a method. In this case while program running, it builds and destroys million connection. In every loop in the called method creating a new connection then doing something then closing it. This condition takes so so much time. I want to optimize this. So at first I should create a global solid connection. Program should do own work with out creating new connection but with using the connection. Finally when finishing the program, connection will be closed. Could you help me Regards... Thank you for your no helping. Okay anyway... Below codes are answere. class example { string connectionString = & ...Show All

  • Microsoft ISV Community Center Forums Using arrows to select in drop down list in access

    Hi - anyone know how to get a drop down list combo box to allow you to select an option using the up/down arrows on the keyboard in access rather than having to click on the down arrow on the combo box in access - user wants to do it by tabbing into boxes and using the arrows to select because its quicker. thanks, Rhys. Fussy users, surely not. Try this, dropdown appears on down arrow. Test also allows normal use of ALT+Down Private Sub ComboBox1_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And Shift <> acAltMask Then ComboBox1.Dropdown End If End Sub ...Show All

  • Smart Device Development datagrid / refresh

    Hello everyone, I red all messages but i couldn't find any solution. My problem seems simple: environment: Vs 2003 /Sqlce When i enter a new row , the datagrid doesn't reflect the change. my code: Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim xx As Decimal Dim CN As New System.Data.SqlServerCe.SqlCeConnection("Data Source = \My Documents\sgdb.sdf") Dim DA As New System.Data.SqlServerCe.SqlCeDataAdapter("SELECT HEAD_ID,LINE_ID,BARCODE_STR FROM SG_INV_BARCODE_LINE_TAB", CN) Dim DS As New DataSet Dim CMD As System.Data.SqlServerCe.SqlCeCommand = CN.CreateCommand() CN.Open() DA.Fill(DS, "SG_INV_BARCODE_LINE ...Show All

  • Software Development for Windows Vista critical issues from SUA

    Hi all. Please, tell me, how can I know whether some issue from Standard User Analuzer is critical I mean, there are some files or registries or other objects, which will be accessed even from very simple program with one form with nothing on it and with no developer defined functionallity. And SUA will display all these cases of access ! Thank you. I'm working on Windows XP. Here are some of results obtained while running application under SUA : 1. "File" tab : =================================================================================================== File name API Work with Virtualization ------------------------------------------------------------ ...Show All

  • Visual Studio DB field linked at the bottom of the section

    In CR how can I put a db field linked at the bottom of the section, when another field grows and move down the end of the section Unfortunately, I do not know if you can align the objects to the bottom as they grow. If you can, maybe insert another section below that section and place the field on the right in the section below. Sorry I couldn't be of more help on this. Good luck! ...Show All

  • Visual Studio Database Expert linking and Subreports

    I went through a complete 'Walkthrough' 'Report Document Object model Logging onto a secure SQL Server database with a sub report. Suffice it to say that since am creating a custom Dataset in ADO.NET, this was the incorrect walkthrough - as it showed me a Login, connectionInfo, etc. - this was all unnecessary because the dataset schema takes care of that in the connection. It's difficult to find all the correct information because this is all so new. I'm interested to optimize the loading of a report that has 4 subreports - the method I am pasting here works, but I read something about creating a relationship with the tables in the main report - so I tried that but then I get the famous side-effect - prompt for login credentials p ...Show All

  • Visual C++ Connecting Access database vis managed code via ADO.net.

    Hi; Could someone point out my code error here. When I try to compile I get a C2065 OleDbConnection undeclared identifier error msg. Here is my code: #using <mscorlib.dll> #using <System.Data.dll> using namespace System; using namespace System::Data; using namespace System::Data::OleDb; #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { // The connection //string cnNwind; OleDbConnection * conn = new OleDbConnection(); conn->ConnectionString = S "Provider=Microsoft.Jet.OLEBD.4.0; " S"Data Source=C:\my_databases\taxLots.mdb"; // The connection string try { // Open Database conn->Open(); Console::WriteLine(S"Connected to database successfully ...Show All

©2008 Software Development Network