Muhsin Zahid Uğur's Q&A profile
SharePoint Products and Technologies List Items filtering
How do I filter items, displayed by AllItems.aspx Example: I want users from group "A" to see only contacts with department field set to "presidium" in site contact list. I was able to filter list item fields when displaying details about item by implementing my own ListFieldIterator object. (for example you cant see management cell phones etc.) Is it possible to do something similar with List Items ...Show All
Visual C++ Problem compiling an ADT using istream &operator>>
I keep getting a "error C2143: syntax error : missing ';' before '&'" error for the following code fraction.h..... #ifndef FRACTION_H #define FRACTION_H #include <iostream> #include <cstdlib> //for abs() //#include <iostream.h> #include "fraction.h" using namespace std; using std::istream; using std::ostream; using std::cin; using std::cout; /************ Type definitions for ADT Fraction ************/ typedef enum { POS, NEG } SignType; class Fraction { public : int numerator; /* numerator and denominator are declared as */ int denominator; /* int to simplify the algorithms, but they */ SignType si ...Show All
Visual Studio 2008 (Pre-release) Streaming with mtomMessageEncoding with readerQuotas, maxBytesPerRead issue
Hello there! I've just found that when streaming is enabled over HTTPS transport, setting <readerQuotas/maxBytesPerRead> for <mtomMessageEncoding> doesn't affect amounts of bytes that can be read from the streamed message. It is always 4096 which is the default value. My binding looks like: <customBinding> <binding name="DataStoreServiceBinding" receiveTimeout="00:30:00" sendTimeout="00:30:00"> <mtomMessageEncoding maxBufferSize="1048576" messageVersion="Soap12WSAddressing10" writeEncoding="UTF-8"> <readerQuotas maxBytesPerRead="524288"/> </mtomMessageE ...Show All
Visual Studio Tools for Office VSTO and excel profile regeneration
Hi, I have a VSTO project for Excel 2003. I am trying to load up an excel sheet. It works fine in development and QA environments. But in production, I get "The customization assembly could not be found or could not be loaded" error. I need to regenerate excel profile to make it work. I regenerate the excel profile by renaming HKCU\Software\Microsoft\Office\11.0\Excel key and then restart excel. Excel automatically regenerates the user's excel profile. I cannot keep on doing this on every user's machine as I do not know whether it would have any detrimental effects. I have given "Full Trust" to the dlls in the deployment folder using the .Net Framework 2.0 Configuration tool. Also, there is no runtime e ...Show All
Audio and Video Development Access to DOM model
I described JavaScript & XMU files in playlist (and manifest): <ApplicationResource loadingBegin="00:00:00:00" priority="1" src=" file:///dvddisc/ADV_OBJ/main.js " multiplexed="false" /> <ApplicationResource loadingBegin="00:00:00:00" priority="1" src=" file:///dvddisc/ADV_OBJ/main.xmu " multiplexed="false" /> When iHDSim start to executing JS, he can't access to XMU DOM model from JS file (Example: document.getElementById('Button') return "Unable to evaluate the expression."). After what ev ...Show All
Visual Studio Tools for Office Word and line command argoment
Hi, Sorry for my english! I would to read some arguments that I send to a word document on command line. Some could help me hello & thanks Ivan Sorry, the word document is connected to a sql server database. It is opened by a vb.net application that send it some information and I would to pass them on command line. If its possible!!! Hello ...Show All
Visual Studio Express Editions Declare array[]
Hi, I am trying to declare an array for the DataColum in the Window Form private System.Data.DataColumn[] colItemCode = new System.Data.DataColumn[10]; I have a function that will initialize the data column, private void InitializeItemTable(int i) { //this.colItemCode = new DataColumn(); ---> comment this will give an error as below this.colItemCode .ColumnName = this.lblItemCode.Text; this.colItemCode .DataType = typeof(string); } Since, in the Window Form class, I declare the colItemCode and using new to declare the object instance for the 10 arrays. Therefore, I think that " this.colItemCode = new DataColumn(); " is not required. However, when I run the program, it throws me an error: Obj ...Show All
Visual Studio Express Editions Error while creating Dataset
Hi, I have recently downloaded Visual C# Express Edition and SQL Server 2005 Express Edition. When I try to create a dataset from within the Visual C# IDE, I get the following error: An unexpected error has occured Error Message: Key not valid for use in specified state. Is it a SQL Server related error How can I correct it I can create new database and tables and diagrams in the database using the Database Explorer of the IDE . But when I try to create a dataset, this error occurs. Thanks a lot. This seems like a VS error since things haven't even gotten to the point where you're connecting to SQL Express. Additionally, you point out that you're able to create and edit database through ...Show All
Visual Basic Using the memorystream
Hi. I am wondering if there is a way I can load a text file into a memory stream and then edit the file and print the file without going back to my original file. Thanks a lot and with the list will I be able to then send it to a printer say using the printer IP address or will I need to do some sort of conversion before I do that ...Show All
Software Development for Windows Vista WMI and Win32_DeviceChangeEvent
Apologies in advance if this is the wrong forum to post on. If so, then please direct me to a better one. I'm having difficulty getting notification for the WMI event Win32_DeviceChangeEvent. Using the TempConsumer sample in the latest Windows SDK (Samples\SysMgmt\WMI\VC\TempConsumer), I modified two lines of code to be able to subscribe to the Win32_DeviceChangeEvent Line 169 changed from CBSTR Query(L "select * from MyEvent" ); to CBSTR Query(L "select * from Win32_DeviceChangeEvent" ); and line 239 from CBSTR(L \\\\.\\ROOT\\DEFAULT ), to CBSTR(L "\\\\.\\ROOT\\CIMV2" ), Compile the sample and run in Windows XP, then went to Device Manager and picked a device (in my cas ...Show All
.NET Development Remoting application error: "This function must be called in the default domain"
I have a remoting application under the hood is mostly unmanaged code. We have created a managed wrapper ontop of our unmanaged classes. These classes then make a transition back into a managed context to do some additional work. These additional classes are written in C++/CLI and some of them have functions that look similair to this. const CMyClass& CTest::Test(USHORT n) { static const CMyClass dbEmpty; //We end up return ALOT of these so we want to only create it once if (someconition) { return CMyClass(aaa); } return dbEmtpy; } When we enter one of these function we will always hit the following assert in _atexit_m defined in msilexit.cpp (Entire function at the end of post). MANAGED_ASSERT(AppDomain::CurrentDomai ...Show All
.NET Development inadvertant mouse driver harware change has rendered mouse functions useless
I have made a very stupid "mouse functionality" harware device update selection and now find myself unable to use my desktop as my mouse pointer won't move; so i can't select anything on my computer. Specifically, i did the following: Clicked on "start," Then "control panel" Clicked on "mouse icon" clicked on mouse icon and that opened the "HID-compliant mouse Properties" window which opened the "mouse Properties" window I selected the "hardware tab" selected the "properties" box in the lower right hand corner of the window which opened the "HID-compliant mouse Properties" window selected the "driver tab" ...Show All
Smart Device Development Finding the handle of the specific buit in application
hi, I m again struck in the Camera Issue. I m using FindWindow() for this, giving the classname. But the problem is the class name would be different for all the devices. is there any way to have directly the handle of the camera id running. plz help.thanx in advance. I had this same problem, and never found a good solution, because even if you explicitly name your window, some devices will prefix the window name with 'Camera' or similar. I'd be interested to see what you eventually learn here. I simply tested on a variety of devices, and mapped against the device type. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can you kindly seperate Vista-only parts (like samples) from DX 9 SDK August 2k6 Update?
During the installation of DirectX, I found it painfully slow for me to wait until I get to a part where I can select a location to unzip all the DirectX SDK installation files... Urgh...it is slow! When I get to DirectX SDK Setup, I saw that sample programs that showcases DirectX's features require 741MB--[whe-wha--]--_why_ does samples require 741MB! Well I'm not trying to complain but because 741MB have already taken up by samples in my C:\DirectXSDKAugust\ that I unzipped for installation, it's going to take another 741MB to install Samples in C:\Program Files\DirectX SDK...\ directory, and I plan to zip up the installation folder for keeping it. Now, I have a question. Can you seperate DirectX 10-related parts from DirectX 9 SDK ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Create my own Device
Hi , I am trying to setup my own parameters to create my own graphics device. I want to make it a REF device and set a custom adapter number. This is for a program called NVPerfHUD. Is there a way to customize the device creation Can I destroy the old device and create one my own Or is this not possible in XNA Thanks for any answers There's a howto article in the xna docs on how to use the ref device XNA Game Studio Express > Programming Guide > Graphics > 3D Graphics > How to: Use the Reference Device That tells you how to use the ref device with the Game class. Otherwise, you can still manually create your device and pass in the presentation params, and pass in a form or control handle f ...Show All
