15,891,864 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by arielb (Top 20 by date)
arielb
28-Oct-13 8:38am
View
WCF should handle it, how can i enable chunking?
arielb
28-Oct-13 5:43am
View
didn't help.. its still 65536 bytes per "Read".
i find that 400MB files take much time to download, maybe its because of the chunks?
arielb
30-Sep-13 5:35am
View
oh, i've already said, i can't switch all my tags to client side only, i need some server code to be done.
i dont understand why it does that
arielb
30-Sep-13 3:41am
View
This is not a solution to "upgrade to ie10", we need to support all browsers (we can't tell our clients to not use IE9).
and which post are you talking about?
arielb
29-Sep-13 11:42am
View
sadly i cant, as i need this rendering (because i'm doing some server side code for each element)
arielb
26-Dec-11 14:04pm
View
check which .net framework u need
http://www.microsoft.com/download/en/details.aspx?id=21
arielb
26-Dec-11 13:58pm
View
that will remove them from the view of course, but will keep them in memory.
he shouldnt use that if he wants to remove them for good.
arielb
26-Dec-11 13:56pm
View
thanks, but if u will not include not A nor B, how will the classes know each other exist?
i tried removing the includes - didnt work.
arielb
26-Dec-11 13:50pm
View
Hey, first of all, thanks for the comment! i will explain fully:
We have an engine, which is c++ written.
Somewhere along the execution, we call a user exit (which can be written in C++, perl, and batch).
i want to add implementation for .NET user exit - which means, the end user will write his user exit with C# (important to mention, that there's always a parameter when the user exit starts, an object that can be manipulated by the user. (like obj->SetInternalFlag(), or obj->WriteToLog(...))
so thats why, i need my c++ to call a user written C# DLL, and pass the c++ object where the user, inside C#, can call methods on,
then after the DLL is called (and i need a return code from his DLL - means, he should write a function that returns bool), i need to continue execution.
General user exit method looks like that, for example:
bool DoUserExitPostOperation(PostOperationObject obj);
For your second part,
i did consider to use c++/CLI (thats what i posted in my question), I can touch the engine, but at some point i need to call that C# dll, which is problematic to me.
anxiously waiting for your answer :)
arielb
1-Nov-11 2:30am
View
Again, the return value and the GetLastError returns the same values, when the channel is up and working, and when i reopened mstsc while server is up (and data is not received anymore by either side)
so i cant use it
arielb
31-Oct-11 18:43pm
View
Its not what i've asked...
even if the channel is not active (i guess so atleast), i get no error when i send at the client side, and read at the server side.
the data just wont transmit (again, after closing the mstsc window).
i need to find out how to understand at the server that the client closed the window (if i'd get errors, it would be good, but thats not the case
arielb
31-Oct-11 18:30pm
View
The GetLastError() was actually for debug cases, it will go away.
And which code should i add?
i get the same results when the channel is active, and no data was sent yet,
and when the virtual channel is closed, and i reopen mstsc (The client does issue a connect, with no errors), but the server's channel is already gone.
same pBytesRead=0, and no error returns.
I just want somehow to understand that the client disconnected, or even better, connected, to issue an open call.
is that possible?
thanks :)
arielb
18-Aug-11 2:30am
View
nope, just browsing the site, and to call a method that returns the html
The problem is, that i need to start that server proccess upon request,
and the port is configured by runtime,
so is it best practice to use a regular configuration, and maybe change the ports at runtime? is it even possibe?
(to clarify, if i use configuration at port 8080, next time i'll use another port, and even another URL, and i want the server to start up dynamiclly and listen to browser + regular WCF calls)
Thanks!
arielb
18-Aug-11 2:26am
View
Deleted
nope, just browsing the site, and to call a method that returns the html
arielb
11-Aug-11 13:28pm
View
similar idea, but if there's no better solution i'll take that.
thanks!
arielb
11-Aug-11 13:26pm
View
no.. it inits everything to 0... not 0,1,2,3.. etc
arielb
11-Aug-11 13:24pm
View
no, you don't know the length of the array, u are getting that as a parameter.
means, what u have in ur hand is
int[] array = new int[n]
now, initialize it without a loop
arielb
11-Aug-11 12:55pm
View
nope, because u dont know whats the number of n, its variant.
if it would be constant then this initiazlization would be ok.
i got a tip to think more object oriented style.
arielb
4-Jul-11 2:57am
View
hey, i tried your second solution (which is the best 4 me)
UPDATE tblTest
SET f1 = @f1,
CASE @f2 WHEN IS NOT NULL
THEN f2 = @f2 END,
f3 = @f3
when the table has f1, f2, f3 as fields.
it gives me:
Msg 156, Level 15, State 1, Procedure ariel, Line 20
Incorrect syntax near the keyword 'CASE'.
anyway, this worked for me:
UPDATE tblTest
set f2 =
case when (@f2 is not NULL) then @f2
else f2
END
where f1 = 1;
but isnt that an issue? because, if the value is null, it will update the last value (though i dont want it to do so)
arielb
2-Jul-11 12:56pm
View
obvious.
so thats way i asked, is there any best practice to do a generic update stored proc?
something like
update X
set
A = @a if @a != null
B = @b if @b != null
the only thing i could think of, is to select the previous values, and use a case in every set update.
Show More