Bob K.'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Using an array in a vertex shader
My understanding is that a vertex shader works on a single vertex at a time. If that's the case, I'm confused about how to call a shader using values that are in an array. Say I have a mesh of ten vertices, and I have a an array of 40 vector3's. Each index in this array contains a unique vector value and corresponds to a vertex in the mesh, so, the array represents four frames of data that I want to use in a calculation within a vertex shader How is it done Like I said my understanding is that the shader operates on a single vertex at a time, so I can't pass the whole vector3 array to the shader. I have to get the right index, and pass that value to a vector3 global in the shader, which doesn't sound like a big deal, right The problem is ...Show All
Visual Basic Making my programs executable?
I am fairly new to programming, and going to college for Software Engineering (just started); I was just wondering once you get all the code written out, and everything in place like you want it, how do you convert it to an .exe to where it will run on any machine Any help would be appreciated! You cannot do this in .NET anything created in .NET requires its resources/libraries (ie the .NET Framework) in answer to your question, you would need to create these applications in VB, C++ or VC++ VB is now outdated and replaced by VB.NET, everything is going .NET now :-) As said before, in the future you will not need to worry about having .NET on the computer since .NET is almost now a standard feat ...Show All
Windows Forms Form doesn't have focus when its DialogForm closes.
Hi all, I have a Form (Form1) that opens another Form (Dialog) when a button is pressed, but when this Dialog Form is closed, the Form (Form1) that opened this doesn't have focus and I have to tap the screen (Using PocketPC) twice inorder for any Control on the Form to get the focus and react to my actions. I have the following code in a method... if (frm != null) { if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) return true; else return false; } ... that opens the forms, but this code is contained in a class and is called from the event on Form1. Is this the cause (the form open call being in another class ) As I don't get this problem anywhere else in my application. Even if I put in a statement that sets a control on ...Show All
Visual C# map DLL functions in C to C#
Hello, Here are declerations of DLL functions with defines in C: #define PV_PTR_DECL * #define PV_DECL __declspec(dllexport) __stdcall typedef unsigned short rs_bool; typedef char PV_PTR_DECL char_ptr; typedef short int16, PV_PTR_DECL int 16_ptr; typedef void PV_PTR_DECL void_ptr; typedef void_ptr PV_PTR_DECL void_ptr_ptr; typedef unsigned long uns32 PV_PTR_DECL uns32_ptr; typedef struct { uns16 s1; /* First pixel in the serial register */ uns16 s2; /* Last pixel in the serial register */ } rgn_type, PV_PTR_DECL rgn_ptr; typedef const rgn_type PV_PTR_DECL rgn_const_ptr; /* DLL functions */ rs_bool PV_DECL pl_cam_get_name (int16 cam_num, cha ...Show All
Software Development for Windows Vista Some questions
Hi, Some generate questions: 1) For Sequential Workflow, I can track the Instance History without using SQLPersistenceService, but for the Statemachine workflow, I must start the SQLPersistenceService before I can get the tracking history, is that true 2) In Beta 2.2, I remember we have the script to create the SharedPersistenceAndTracking database. But for the RC version, where can we get the Sql Script to generate the Shared store 3) After the workflow completion, we can get the Output Properties within the workflow instance with e.OutputParameters("ClaimAmount"). But before the completion, how can be get the properties (such as the Claim Amount we send to the workflow when we start the workflow) from the Workflow T ...Show All
SQL Server Sending email to multiple recipient
I am trying to send emails to multiple recipient using the Send Mail Task, but it is failing with the error: " The specified string is not in the form required for an e-mail address." It works when I have only one emailID in the ToLine, I have a script task that build the emaiID list and saves it in a variable and the in the Send Mail Task, I am using the Expressions for ToLine to use this variable. If there is just one emailID in the list, everything works, but if there are multiple, it throws an error. For building the emailID list, I tried using "," as well as by ";". But none seem to work. Any help will be greatly appreciated. The Send Mail task likely doesn't su ...Show All
Visual C# Compiling under dualcore systems
Is it possible to get Visual Studio to use the full capabilities of multiple processors and/or dualcore processors I have a project in Visual Studio that takes 4 - 5 minutes to compile, and during the entire time, it's only using 50% of the available processor power. Obviously it's going to take time for the compiler to be upgraded to support multiple cores and multiple processors, but is it possible to at least compile two files at the same time - a copy of the compiler running on each core/processor One of the projects in question is a Visual C++ project with just over a hundred cpp files. The machine used to compile the project is a AMD X2 4800 with 2GB of RAM. Only Visual C++ can do multiprocessor ...Show All
Visual Basic Colour Combo Box
Hi, How do i get a combo box to display system colours As i am using it so the user can select the background colour for a graph. I have tried colourcb.text = color() but this produces an error any ideas Andy HI, Is there a colour box which displays the list you get in visual sudio when you type color. Aqua blue Brick red etc Thanks, ANdy ...Show All
Windows Forms How to use dll in windows forms?
Hi, I know how to create dll in win32 applications, but cant understend what's wrong in windows forms. I created dll with such header: #ifdef WIN32DLL_EXPORTS #define FUNCTION_EXPORT __declspec (dllexport) #else #define FUNCTION_EXPORT __declspec ( dllimport ) #endif bool FUNCTION_EXPORT CompressFile( char *filename, char *dest); Its works fine when I used it in console application, but when I addet it to my Windows Forms project and tryed to compile it I get message: error LNK2028: unresolved token (0A00000E) "bool __clrcall CompressFile(char *,char *)" ( CompressFile@@$$FYM_NPAD0@Z) referenced in function "private: void __clrcall CabCompressor::Form1::button1_Click(class System::O ...Show All
SQL Server Hierarchy Parent-Child
Hi. I have a parent-child relationship in a table, by making use of an ID, and Parent ID. Firstly how do I manually change, or setup this hierarchy. Secondly, how do I do a rollup, along this hierarchy, sothat I can retrieve the aggregate values, using MDX I thank you in advance for your feedback. Hi. Sounds like you should start with the basics in Analysis Services about parent-child hierarchies. Here's a link to MSDN on-line which explains how parent-child hierarchies work in SSAS 2005. The subsequent links at the bottom of the page can guide you to more detail on creating the parent-child hierarchy in BI Studio. http://msdn.microsoft.com/library/default.asp url=/library/en-us/olapdma ...Show All
Microsoft ISV Community Center Forums How to get the filename into the "Insert Picture" dialogue?
Our company written a marco that used in MS Words and it as same as the "insert -> picture -> from file" dialogue, but we want to enhance it to get the filename automatically when the dialogue box is opened to instead of blank. Hi, Looks like the built-in dialog does not take a initial filename argument. You can change the folder using, Options.DefaultFilePath(wdPicturesPath) = "C:\" Instead try the Filedialog object. Dim dlgFile As FileDialog Set dlgFile = Application.FileDialog(msoFileDialogFilePicker) With dlgFile .Filters.Add "Images", "*.bmp; *.gif; *.jpg; *.jpeg", 1 .InitialFileName = "c:\temp\happy" .InitialView = msoFileDialogViewThu ...Show All
.NET Development Trace.Refresh() call fails
Hello all. I am trying to catch changes in my app.config file and refresh Trace class on any change. I am using FileSystemWatcher class instance to be notified about any change. When the "on change" event raised i call Trace.Refresh(). However, i get exception each time it is happening. Exception says there is multiple access to the file. I tried to edit app.config from FarManager application's editor and from notepad. How i can refresh the Trace object without getting this exception Thank you Yes. It seems your guess was correct. I tested TraceSource instance with Trace.Refresh and it is updated. Very said news, since it forces me to create a single-tone object in the code while i have a built-in one. Hope t ...Show All
Visual Studio Tools for Office Features or Bugs in VSTO.
Are these features or bugs I've found two things that there may be a reason for but I can think of none. 1. If you have a form field in a word document project that has a default value in it. You cannot populate that bookmark in code with a bookmarkname.Text = "AAA" line of code. It gives you an error along the lines of "Out of Range" or something like that. 2. If I am trying to populate a data island from code on a web server. I open the the document file with a file stream and then assign it to a "ServerDocument" class as shown below If File.Exists(BlankDocumentPath) = False Then Return ("File " & BlankDocumentPath & " Does not exist") Exit Function ...Show All
.NET Development Strong name validation Failed - From Suan
I am using VS2005 Professional edition in Windows Vista and intalled all the required updates. I have a project in C# where i required to use the Signkeys (.snk) files and embedded manifest (ExeName.exe.manifest) files for requestedPrevileges. My external manifest files contains the following lines of code: < xml version = " 1.0 " encoding = " UTF-8 " standalone = " yes " > < assembly xmlns = " urn:schemas-microsoft-com:asm.v1 " manifestVersion = " 1.0 " > < assemblyIdentity version = " 1.0.0.0 " processorArchitecture = " X86 " name = " DocsAlive " type = " win32 " /> < trustInfo xmlns = " urn:schema ...Show All
Visual Studio Express Editions LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
I am trying to build a project I created using VC++6. I have the platform sdk, and I created the directory PlatformSDK inside VCInstallDir, and copied the platform sdk folders bin, include, and lib into it. Here are my directories: Executable Files: $(VCInstallDir)PlatformSDK\bin $(VCInstallDir)bin $(VSInstallDir)Common7\Tools\bin $(VSInstallDir)Common7\tools $(VSInstallDir)Common7\ide $(ProgramFiles)\HTML Help Workshop $(FrameworkSDKDir)bin $(FrameworkDir)$(FrameworkVersion) $(VSInstallDir) $(PATH) Include Files C:\Program Files\Microsoft DirectX SDK (June 2006)\Include $(VCInstallDir)PlatformSDK\Include $(VCInstallDir)PlatformSDK\Include\atl $(VCInstallDir)PlatformSDK\Include\crt $ ...Show All
