Posts

Showing posts from June, 2013

Teach me anout MFC extension DLL's and regular DLL's!

hi! i have studied wikipedia , msdn, still haven't grasped different dll setups. put down think have found out far. please correct me i',m wrong! a dll can of type mfc extension dll or regular dll . a dll of type mfc extension can call functions in regular dll a dll of type regular cannot call functions in mfc extension dll. a dll of type regular cannot  call functions in mfc extension dll if dll export functions plain c-styre signatures , datatypes. a dll of type mfc extension may complemented .lib-file used statically linking. after statically linking dll, caller can use functions in dll if available during build time (all though possible exchange dll new, compatible, dll). a dll of type regular may complemented .a-file used statically linking. after statically linking dll, caller can use functions in dll if available during build time (all though possible exchange dll new, compatible, dll). a regular dll is compiled standard c interface , dll format elf

validation question

hey everyone, i'm new programming wondering knew how catch error if radio buttons not selected. i'm making program displays amount of calories needed maintain current weight. i tried a.. if(maleradiobutton.checked=false) display message, doesn't seem work. sorry if code, have never posted on here. code straight forward appreciate.     public partial class form1 : form     {         const double male_active_factor = 15;         const int male_inactive_factor = 13;         const int female_active_factor = 12;         const int female_inactive_factor = 10;         public form1()         {             initializecomponent();         }         private void calculatebutton_click(object sender, eventargs e)         {                          double calories;             double weightinpounds;             double weightinkilograms;             if (maleradiobutton.checked && activeradiobutton.checked)             {            

Joins Between Azure SQL and Datawarehouse

hello everyone, is possible create join between azure sql , azure sql data warehouse. i found lots of things cross joins between 2 databases don't think it's same want, here link- https://ppolyzos.com/2016/07/30/cross-database-queries-in-azure-sql-databases/ i want access these joins via power bi coming through view , these view can fetch data azure sql , azure data warehouse. please suggest how can achieve it. thanks, akash hi akash, at moment sql dw doesn't support cross database queries. joining sql dwh table azure sql not possible. markus Microsoft Azure  >  Azure SQL Data Warehouse

Problems with ESB Fault Handling

i testing out esb fault handling process , encountering basic issues. took simple scenario - itinerary receives message via wcf & routes via dynamic esb send port using wcf transport, routing information being specified via business rule. in receiving wcf application deliberately throw exception. these issues see: a) unable deteremine error reason due error message truncation in the esb portal find error fault description & exception is truncated 4096 characters. wcf generates long exception messages see message beginning "system.servicemodel.faultexception ....". esb portal doesn't try display full 4096 characters, in fact don't quite understand displaying - not same fault exception message found in esbexceptiondb. in database see: system.servicemodel.faultexception: <s:envelope xmlns:s=" http://www.w3.org/2003/05/soap-envelope " xmlns:a=" http://www.w3.org/2005/08/addressing " xmlns:u=" http://docs.oasis-open.org/wss/2004/01/oasis

MMC application memory usage keep increasing

  i wrote mmc application using atl c++. in mmc left scope, items have image represent item's state(started or stopped). and have thread update mmc left scope item's image according item's state. the code update item image following: (the following code executed in thread function) while( application running ) { ... //get item's state , define scopedataitem , put image id it. scopedataitem sdi = { sdi_image | sdi_openimage,         null, lclosedimage, lopenimage, 0, 0, 0,       0, lid }; //update item's image m_piconsole->setitem(&sdi)  //m_piconsole ccomptr<iconsolenamespace2> ... } run mmc application, can see item's image swithover according state. but when @ mmc application's memory usage in task mangaer, found memory usage of mmc appliction keep increasing. if remove code update item's image(m_piconsole->setitem(&sdi)), memory usage not keep increasing. is there have same experience? how can avoid this?

How to handle heavy data in .NET

hi i dealing huge data. data stored in files , application loads memory in float arrays. the size few hundreds of mb. there can multiple such files. currently keeping entire data in memory performance. because of that at time not able open more 1 file gives system out of memory exception. can suggest me techniques can achieve performance better memory utilization. working in 3.5, c# the application kind of image processing application huge data displayed on chart(third party) , can manually interacted with. thanks , regards - jc which it? 512*sizeof(float[32768]= 66mb, or 512 * = 32gb? 66mb tiny, , shouldn't have trouble @ all. 32gb huge, , you're going pushing boundaries of avaible physical memory, , virtual address space @ every turn. you might think implementing own lru cache manage gb or of float[32768]s. advantage of doing rather relying on garbage collector, is choose policy controls segments discarded. garbage collection based scheme going lose weak-referenced large ob

How to open DispForm.aspx and NewForm.aspx in SharePoint Hosted app

Image
hi all, i created sharepoint hosted app , bind sharepoint list item in table.my requirement when user click on employees name  open dispform.aspx page. after click on employees name open  dispform.aspx. and  please suggest how open newform.aspx in sharepoint app. thanks akash anand hi aakash, thanks posting issue. as per description posted you have alreday fetched list data in tabular format. now assume have alreday id of items in table. so linking dispform.aspx link employee name anchor tag url https://abc.com/lists/listname/dispform.aspx?id=1 to open new form can link withany anchor tag or hyperlink or button below url https://abc.com/lists/listname/dispform.aspx hope that's helps you. regards soni k SharePoint  ,  Apps for Office and SharePoin

Issue with Provider hosted event receiver - There was no endpoint listening at https://[localwebsite]/Services/AppEventReceiver.svc that could accept the message

hi,  i created sharepoint provider hosted app , enabled event on handle app-in installed. wrote simple logic of adding item list on app installed. hosted service on local iis server , add-in app installed on sharepoint online. when try deploy app getting below error. can of please answer of how handle below error. there no endpoint listening @ https://[localwebsite]/services/appeventreceiver.svc accept message. caused incorrect address or soap action. see innerexception, if present, more details. public spremoteeventresult processevent(spremoteeventproperties properties)         {             spremoteeventresult result = new spremoteeventresult();             using (clientcontext clientcontext = tokenhelper.createremoteeventreceiverclientcontext(properties))             {                 if (clientcontext != null)                 {                     clientcontext.load(clientcontext.web);                     clientcontext.executequery();                

Request.ServerVariables variables seems to be established with the first request to my asmx WS

This summary is not available. Please click here to view the post.

Dynamic controls in combination with masterpage

hey folks, i want add controls dynamically webpage, use in combination masterpage. when try add control in page_load event way button mybutton = new button(); this.controls.add(mybutton); i encounter exception @ runtime says "the control ctl01 of type button needs put inside form-tag runat=server". (it's not original message, had translate it) my masterpage looks this: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">     <title>unnamed site</title> </head> <body>     <form id="form1" runat="server">    <div>         <asp:contentplaceholder id="contentplaceholder1" runat="server">         </asp:contentplaceholder>    </div>     </form> </body> </html> without masterpage, works. should work using 1 well. can me this, please?  yes, know.  no manual, searching hours.... days... real name of controls (or may contain

Choice of permanent storage for ClickOnce and multiple processes/threads

hello, i'm unsure if right forum question relates several different areas. i have application written using .net 4.0 using visual studio 2013 (mostly c#). deployed using clickonce .net framework prerequisite. because of environments , customers application deployed number of prerequisites needs kept @ minimum. several instances of application can ran @ same time. processes/instances need share data placed in application clickonce data directory. done using xml-files application trying synchronize use of these files using mechanism similar lock files. unreliable , not robust "coarse". solution needed. seemed logical sql server compact edition. understand ce provide mechanisms sharing data , synchronizing access  it. possible distribute files needed part of clickonce application (not requiring user install separate package requiring administrator previliges). however, seems if ce being discontinued in favor of sql server localdb , localdb should used instead.

non-iterative Number

how can return non- iterative  numbers random method? system.random  is pseudo-random number generator.  for purposes, fine, it's going "random" given specific seed value.   for this, you'd make series of numbers like: random rand = new random(); // optionally provide seed int numberstogenerate = 500; ienumerable< int > numbers = enumerable.repeat(0, numberstogenerate).select(i => rand.next()); if want avoid pseudo-randomness, , provide more elaborate, such using cryptography provider: int numberstogenerate = 500; var provider = new rngcryptoserviceprovider(); byte [] data = new byte [4]; list< int > numbers = new list< int >(); for ( int i=0;i<numberstogenerate;++i) { provider.getbytes(data); numbers.add(bitconverter.toint32(data, 0)); } reed copsey, jr. - http://reedcopsey.com if post answers question, please click " mark answer " on post , " mark helpful ".

Running a function using thread continuously in c#

hi all,       want run function continuously using thread in windows c# application,but should not affect performance , no memory leaks. please me in solving issue.provid me solutions effectively. thanks, prabhakaran.k just start background thread: thread th = new thread(()=> { //do u wanna…… }); th.isbackground = true; th.start(); another way u can backgroundworker class: http://msdn.microsoft.com/en-au/library/system.componentmodel.backgroundworker(v=vs.80).aspx 下载msdn桌面工具(vista,win7) 我的博客园 慈善点击,点击此处 Visual Studio Languages  ,  .NET Framework  >  Visual C#

Using Certificates in HTTPS

i used certificate worked in http request but same certificate not wotked in https request. 1 has ideas? hello there, some links given below   how ssl work? simplified ssl - secure sockets layer , https http://www.ourshop.com/resources/ssl.html how to: secure asp.net application using client-side certificates http://support.microsoft.com/kb/315588 https , trusting server certificates http://www.wackylabs.net/2004/10/https-and-trusting-server-certificates/ hope helps, regards, phijo mathew philip. phijo mp Architecture  >  Architecture General

bam pROBLEMS

hi experts, trying implement bam in biztalk solution. have googled , got followed 1 link.every things ok.but iam unable see data in pivot table..first of u please clear below queries.. 1.)when trying open bam page in browser, asking user credentials, though using admin uid n pwd.its not taking up.. 2.)i can open in inetmgr,,can't see data there? now checked in sql db also..data there in bamprimayimport db-->instance completed tables..but can't find data in dimensions or measures tables.. u pls tell me..how can i?got strucked in middle..needed urgently.. did granted bam view permission user ? please grant permission using follwoing command. bm add-account -accountname:[domain]\[your user] -view:[view name] if not work. try un deploying bam def , deploy bam def. , grant user permissions bam view. i.ahmad please mark answer if helps BizTalk Server

Attachment File non-English Name DISAPPEARS problem in BizTalk 2010 SMTP Adapter

hello , i'm using biztalk 2010 smtp adapter sending mail attachments setting them via property smtp.attachments //attachment msgemail(smtp.attachments)= attachmentlist; i have files in several languages (in english , in russian partialy) example my attachment list looks this: "c:\temp\files\englishnamefile.xml | c:\temp\files\russianfilename_РусскоеИмя.xml"; after sending mail attachments second file (it's name partialy in russian) received without part name (the non-english part of name is disappears) like this:  russianfilename_.xml ( must russianfilename_ РусскоеИмя . xml ) the non-english part is disappears!!! and if have file doesn't have latin latters (non-english) @  than biztalk smtp adapter change name to default 1 att41233.xml i found behaviour occur in other non-english languages also!!! unfortunately i'm not found info this any help   would  be appreciated vadim well, 4-10mb isn'

Adding file to specific Locale? Is this possible declaratively using the elements.xml file for SharePoint

Image
i have specific file gets deployed using feature, this file added location using the  module. <module> <file  ur="path details.." /> </module> is there way can specify locale? i know can using event receiver, wanted check if possible declaratively. any appreciated. hi gayatri choudhary, i’m not clear description ‘adding file specific locale’, mean locale web.locale property system.globalization.cultureinfo(“en-us”);? mean file can added localization, when selecting english, shows english, when selecting other languages, shows specific language. it seems i’m not understanding correctly, please provide more information this, how event receiver. and deploying file sharepoint site, use module common way, specify property file, can module element, whether contains such property, check whether available. thanks, qiao wei technet community support SharePoint

How to check for duplicates in a List at compile time

have a  list  for windows performance counters, static , cannot changed @ run-time. however, on time list has grown large extremely tedious detect duplicates manually. have written tool can run checking duplicates still possible people may forget run tool or not aware of it. figure out if there way detect duplicates @ compile time itself. code looks this: public enum sampleenum { [description("sample")] sample, } , class define performance counter: public class perfcounter { public int countertype { get; set; } public string countername { get; set; } } these 2 classes used follows: public static class perfcountermanager { public static list<perfcounter> getcounters() { return new list<perfcounter> { new perfcounter { countertypeid = (int) sampleenum.sample1, countername = getenumdescription(countertype.sample1) },

How to Delete Destination Icon in DirectionsManager

how can delete destination icon (in case red circle b) in directionsmanager?  i using bing maps v8 , have layer custom pushpins. change destination icon custom icon not able setting lastwaypointicon property of directionsrenderoptions, or pushpin destination waypoint. alternative delete destination icon can add custom pushpin in same location instead. there no way delete directions icons other remove route map. have plans add option customize directions icons in near future. when available able either style them directly, or hide them , add own pushpins instead. [ blog ] [ twitter ] [ linkedin ] Bing Maps  >  Bing Maps General

Deploy Orchestration service to realtime environment

hi experts, after developing orchestration ,i want deploy wcf service in real time server. so things should present in server deploy service. can u give suggestions.? thank you well you'll need deploy orchestration production environment. you'll have create web folder (to handle publishing wcf) in iis, enable application. publish orcestration wcf endpoint (if intend publish load balanced end-point have done on servers participate in nlb). ensure isolated processing host instance available on nlb servers. bind orchetsration created receive location , you;d go. regards. BizTalk Server  >  BizTalk Server General

Biztalk learning first steps

hello everyone, please provide first steps in learning biztalk server, , how future biztalk professionals. thanks in advance. hk2603 biztalk tutorials: http://msdn.microsoft.com/en-us/library/aa560270.aspx videos: http://msdn.microsoft.com/en-us/biztalk/dd849956.aspx the biztalk market , community vibrant they've ever been. BizTalk Server  >  BizTalk Server General

Custom or configurable products

hello we have got product configurators making complex products configurator determine the price particular configuration (it not built other products). does lineitems/products need represented in catalog or possible add products not in catalog? possible in way? need able set our own price in same step. i have tried quick test adding custom product , set price manually this: lineitem lineitem = new lineitem(catalogname, productid, variant, quantity); lineitem.listprice = 12345; basketmanager.addlineitem(lineitem); it seems price overwritten 1 in catalog. need advice how succeed this adam to achieve custom pricing, need write custom pipeline component overwrite custom behavior defined in basket pipeline.... to sell products not in catalog, should customize basket pipeline , write own components handle it. it's not impossible, should pay bit of attention not breaking discounts , other built in features. stelio http://ecommerceondotnet.blogspot.com/

OLE DB Command fails when having more than one Parameter objects

company has id(10), name(50) nvarchar fields. i'm trying query table w i have sql ce database. company table exists in database. company has id(10), name(50) nvarchar fields. i'm trying query table following select statement whole process crashes. here im using ole db namespace bcz have support different types of databases. oledbconnection olecon = new oledbconnection(); olecon.connectionstring = "provider=microsoft.sqlserver.ce.oledb.3.5;data source=" + directory.getparent(application.executablepath) + @"\database1.sdf"; olecon.open(); oledbcommand cmd = new oledbcommand(); cmd.commandtext = "select * company id = @id , name= @name"; cmd.connection = olecon; cmd.parameters.addwithvalue("@id", "abc"); cmd.parameters.addwithvalue("@name", "name"); oledbdataadapter adp = new oledbdataadapter(cmd); adp.fill(dt); //line of code fails con.close();        

How to set SOAPUser

hello, i hope , think question quiet easy answer. since developing server axis java not used authentication via soap in .net. i want service, created webreference assistent, send specific user , password in soap header. its no use me use defaultcredentials or other domainusers. neet set these 2 variable hand. can give me hint how have modify following constructer use hardcoded user , password?        /// <remarks/>         public simplepackageserviceservice() {             this.url = global::windowsapplication1.properties.settings.default.windowsapplication1_localhost_simplepackageserviceservice;             if ((this.islocalfilesystemwebservice(this.url) == true)) {                 this.usedefaultcredentials = true;                 this.usedefaultcredentialssetexplicitly = false;             }             else {                 this.usedefaultcredentialssetexplicitly = true;             }         } i using wse 2. thanks,        alexander does no 1 have idea how set tags in soa

NVARCHAR storing Unicode

hi, i have column stores japanese characters. datatype nvarchar there 1 record 'ez felica関連その他 ' if retrieve , show on report using unicode font (ms gothic). font not getting applied " ex felica " word, taking default font , ms gothic getting applied other text. how can  forcefully apply font characters. regards, asim bagwan kindly mark replies answers if help! it's not characters available under every font.  it's quite possible font ms gothic (unicode) don't have characters. SQL Server  >  SQL Server Reporting Services, Power View

How to create hierarchy schema with treeview in silverlight?

hi all, i'm new comer in silverlight, in application development have data contain data hierarchy connection between parent-child. please see on below attributes: -structureid -description -parentstructureid anoyone can give me example code load data above information treeview in silverlight? thanks, rory glo. please take @ treeview in here:  http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html Silverlight  >  Silverlight 5

Why can't I build my project in Blend? It build fine in VS 2010.

Image
i following errors when try , build in blend:   unfortunately problem buried deep somewhere in app cannot solve (i have similar problems blend rendering useless) what have done start new project in blend and import pages/classes 1 one until problem know page in deconstruct page carry on importing until in i believe 1 small problem on 1 page can affect whole app 'everything fails' messages without pointers in vs, i believe build not appear refresh assemblies every time can make change not reflected (or quite while after) sorry cannot beyond @ least know not alone, remember version 4!?   jnc Expression  >  Expression Blend + SketchFlow

Xml

how use switch case within while loop search entire xml document , increment variable within case. please share structure of xml. depends on xml structure. have read node node of xml reader , extract information. xmldocument class easy use instead of xmltextreader . search specific tag, , count. xmldocument internally use xmlreader, avoid complex type of coding. you can check links, if want continue xmltextreader - http://www.dotnetperls.com/xmltextreader avik das Visual Studio Languages  ,  .NET Framework  >  Visual C#

Property was already registered

hi i have exception in expression blend, occurs in conjunction datagridcontrol xceed ( www.xceed.com). i post in blend-forum becaus think not realy xceed-problem. in visual studio , @ runtime works perfectly. the exception occurs when open xaml-file datagrid control: exception: type initializer 'xceed.wpf.datagrid.datagridcontrol' threw exception innerexception: 'celleditordisplayconditions' property registered 'frameworkelement'. when dissasemble xceed-code, can find following code, exception thrown: static datagridcontrol() { '... celleditordisplayconditionsproperty = dependencyproperty.register( "celleditordisplayconditions" , typeof (celleditordisplayconditions), typeof (frameworkelement), new frameworkpropertymetadata(celleditordisplayconditions.none, frameworkpropertymetadataoptions.inherits)); '... } because in static constructor, should called once, , so i can't see problem. but that, expression blend

Datagrid With and Without Data

hi, i have datagrid want show empty when page display , results after search button pressed. thinking have 2 datagrids, 1 empy , 1 data , set states switch between grids. wondered if there way have state change binding sample data couldn't figure out how that. way off track or there better way this? still being new blend/sketchflow find lots of things not obvious me. any suggestions appreciated! thanks! bill44077 the state change can't change datacontext, can create 2 datagrids , hide/show them states suggested here: http://stackoverflow.com/questions/3812123/datagrid-in-sketchflow-blendability-please-help/3812725#3812725 another option change datacontext in code inside click event handler.   Expression  >  Expression Blend + SketchFlow

Validate a downloaded EXE

Image
i have program downloads files. however, exe files corrupt , not run. there way validate downloaded exe file executable? must without launching program. there multiple ways it. please go through following discussion on topic http://stackoverflow.com/questions/2863683/how-to-find-if-a-file-is-an-exe a.m.a.l hashim my blog - dot net goodies Visual Studio Languages  ,  .NET Framework  >  Visual C#

iVideoWindow in WPF Lync 2013 SDK UI Suppressed

scenario: mvvm wpf client. i never worked ivideowindow before. i have following event , 2 properties hold ivideowindow (receiving,streaming); what need props display videos in wpf, guess binding out of question ? p.s.: searched allot wpf example displaying lync video streaming in wpf. no luck. /// on private void videochannel_statechanged(object sender, channelstatechangedeventargs e) { var vc = (videochannel)sender; if (e.newstate == channelstate.send) { videostreaming = vc.rendervideowindow; }else if(e.newstate == channelstate.receive) { videoreceiving = vc.rendervideowindow; } } public videowindow _videostreaming { get; set; } public videowindow videostreaming { { return this._videostreaming; } set { this._videost

BizTalk built in Log shipping

could please advice me on how implement biztalk logshipping. i'm trying find microsoft e-learning videos or other videos explains biztalk built in backup job & biztalk built in log shipping thanks have gone through documentation on msdn? http://msdn.microsoft.com/en-us/library/dd761638(bts.10).aspx and http://msdn.microsoft.com/en-us/library/dd760921(bts.10).aspx yossi dahan http://www.sabratech.co.uk/blogs/yossidahan [to others please mark replies answers if found them helpful] BizTalk Server  >  BizTalk Server General

Database Multiple Users / Remote Access

hello, i'm working on rebuilding database system company work for.  i'm using vs c# 2010, stores connected private server network (novell if that's relevant).  told ask in architecture forums particular problem. one reason (of several) i'm trying replace current 20 year old dos based system it's not reliable multitude of users has.  haven't been able decipher relatively ancient code used create it, presently use remote desktop access program's .exe file stored on 1 of machines.  drawback being if log 1 store, whoever on gets booted. i've built of individual forms needed replace system, problem i'm used making small standalone programs, not server-based or multi user i'm not @ sure them @ point.  our set appears have separate databases each store, , call prez , syncs records @ end of every day.  goal have program can lodge in server or each store gets separate table in 1 database.  i've built log in page generic id's each sto

Options with custom build tools

i'm using new visualstudio 2005 feature allows add resource file (resx) project , uses custom tool autogenerate corresponding c# class accessors resource strings.  however, default seems to create c# class access modifier of "internal".  know resgen tool supports /publicclass options, don't see way tell visualstudio use option when generating source code resx file.  can done?  if so, how? i've been trying figure out exact same thing.  apparently, can't ide: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=eaf58466-a6eb-4da9-bf2f-4949b5aff853 i think, however, may possible alter .csproj file behaviour of generateresource build task public class generated.  xml task defined here: http://msdn2.microsoft.com/en-us/library/ms164295.aspx the publicclass parameter isn't defined here, if in actual generateresource class definition: http://msdn2.microsoft.com/en-us/library/microsoft.build.tasks.generateresource.publicclass.aspx

BizTalk operator role read only access

hi i require details adding users biztalk group. i know users can added biztalk administration group or biztalk operator group access biztalk admin console. if users given access biztalk operator group can resume/terminate, start/stop orchestrations or send ports , enable/disable receive locations , start/stop applications but can restrict users doing above operations? is possible to give read access users for viewing tracked message events ,suspended messages, view group hub page, perform queries, save , load queries?    thanks sri sri biztalk admin console users either part of biztalk server administrators or biztalk server operators. level of authorisation   “read-only” tracked data, out-of-box, there no option available. this biztalk360's advanced authorisation comes in. biztalk 360 – restricting user specific biztalk applications . if answers question please mark accordingly. if post helpful, please vote helpful clicking upward arrow mark